This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Move new SH relocations to the SH section.
- To: binutils at sourceware dot cygnus dot com
- Subject: PATCH: Move new SH relocations to the SH section.
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Sat, 2 Sep 2000 17:23:31 -0700
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.