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]

[RFA:] bfd/reloc.c: shlib relocs for CRIS


It looks like the CRIS port can create and link with ELF shared
libraries now.  Here's the part that's not local to the port.

Ok to commit?

2001-03-19  Hans-Peter Nilsson  <hp@axis.com>

	* reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
	BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
	BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
	BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
	BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
	BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
	* bfd-in2.h, libbfd.h: Regenerate.

Index: reloc.c
===================================================================
RCS file: /cvs/src/src/bfd/reloc.c,v
retrieving revision 1.37
diff -p -c -r1.37 reloc.c
*** reloc.c	2001/03/08 21:04:02	1.37
--- reloc.c	2001/03/19 07:04:35
*************** ENUMX
*** 2995,3000 ****
--- 2995,3038 ----
  ENUMDOC
    These relocs are only used within the CRIS assembler.  They are not
    (at present) written to any object files.
+ ENUM
+   BFD_RELOC_CRIS_COPY
+ ENUMX
+   BFD_RELOC_CRIS_GLOB_DAT
+ ENUMX
+   BFD_RELOC_CRIS_JUMP_SLOT
+ ENUMX
+   BFD_RELOC_CRIS_RELATIVE
+ ENUMDOC
+   Relocs used in ELF shared libraries for CRIS.
+ ENUM
+   BFD_RELOC_CRIS_32_GOT
+ ENUMDOC
+   32-bit offset to symbol-entry within GOT.
+ ENUM
+   BFD_RELOC_CRIS_16_GOT
+ ENUMDOC
+   16-bit offset to symbol-entry within GOT.
+ ENUM
+   BFD_RELOC_CRIS_32_GOTPLT
+ ENUMDOC
+   32-bit offset to symbol-entry within GOT, with PLT handling.
+ ENUM
+   BFD_RELOC_CRIS_16_GOTPLT
+ ENUMDOC
+   16-bit offset to symbol-entry within GOT, with PLT handling.
+ ENUM
+   BFD_RELOC_CRIS_32_GOTREL
+ ENUMDOC
+   32-bit offset to symbol, relative to GOT.
+ ENUM
+   BFD_RELOC_CRIS_32_PLT_GOTREL
+ ENUMDOC
+   32-bit offset to symbol with PLT entry, relative to GOT.
+ ENUM
+   BFD_RELOC_CRIS_32_PLT_PCREL
+ ENUMDOC
+   32-bit offset to symbol with PLT entry, relative to this relocation.
  
  ENUM
    BFD_RELOC_860_COPY

brgds, H-P


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