This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Move new SH relocations to the SH section.


Why are the new SH relocations in the MIPS section? Here is the patch.


-- 
H.J. Lu (hjl@gnu.org)
--
2000-09-02  H.J. Lu  <hjl@gnu.org>

	* reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
	BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
	BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
	section.

Index: reloc.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/reloc.c,v
retrieving revision 1.26
diff -u -p -r1.26 reloc.c
--- reloc.c	2000/09/02 17:23:42	1.26
+++ reloc.c	2000/09/03 00:19:36
@@ -2053,17 +2053,6 @@ ENUMX
 ENUMX
   BFD_RELOC_MIPS_GOT_DISP
 COMMENT
-ENUMX
-  BFD_RELOC_SH_COPY
-ENUMX
-  BFD_RELOC_SH_GLOB_DAT
-ENUMX
-  BFD_RELOC_SH_JMP_SLOT
-ENUMX
-  BFD_RELOC_SH_RELATIVE
-ENUMX
-  BFD_RELOC_SH_GOTPC
-COMMENT
 ENUMDOC
   MIPS ELF relocations.
 
@@ -2318,6 +2307,16 @@ ENUMX
   BFD_RELOC_SH_LOOP_START
 ENUMX
   BFD_RELOC_SH_LOOP_END
+ENUMX
+  BFD_RELOC_SH_COPY
+ENUMX
+  BFD_RELOC_SH_GLOB_DAT
+ENUMX
+  BFD_RELOC_SH_JMP_SLOT
+ENUMX
+  BFD_RELOC_SH_RELATIVE
+ENUMX
+  BFD_RELOC_SH_GOTPC
 ENUMDOC
   Hitachi SH relocs.  Not all of these appear in object files.
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]