[PATCH]: Add missing sparc relocs

David Miller davem@davemloft.net
Sun Apr 13 06:12:00 GMT 2008


This syncs the C elf headers for sparc with the relocations
already present in the elfcpp sparc headers.

include/

2008-04-12  David S. Miller  <davem@davemloft.net>

	* elf/sparc.h (R_SPARC_GOTDATA_HIX22,
	R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22,
	R_SPARC_GOTDATA_OP_LOX10, R_SPARC_GOTDATA_OP,
	R_SPARC_H34, R_SPARC_SIZE32, R_SPARC_SIZE64): New relocs.

Index: include/elf/sparc.h
===================================================================
RCS file: /cvs/src/src/include/elf/sparc.h,v
retrieving revision 1.13
diff -u -p -r1.13 sparc.h
--- include/elf/sparc.h	11 Mar 2008 23:21:08 -0000	1.13
+++ include/elf/sparc.h	12 Apr 2008 09:37:00 -0000
@@ -151,6 +151,16 @@ START_RELOC_NUMBERS (elf_sparc_reloc_typ
   RELOC_NUMBER (R_SPARC_TLS_DTPOFF64, 77)
   RELOC_NUMBER (R_SPARC_TLS_TPOFF32, 78)
   RELOC_NUMBER (R_SPARC_TLS_TPOFF64, 79)
+
+  RELOC_NUMBER (R_SPARC_GOTDATA_HIX22, 80)
+  RELOC_NUMBER (R_SPARC_GOTDATA_LOX10, 81)
+  RELOC_NUMBER (R_SPARC_GOTDATA_OP_HIX22, 82)
+  RELOC_NUMBER (R_SPARC_GOTDATA_OP_LOX10, 83)
+  RELOC_NUMBER (R_SPARC_GOTDATA_OP, 84)
+
+  RELOC_NUMBER (R_SPARC_H34, 85)
+  RELOC_NUMBER (R_SPARC_SIZE32, 86)
+  RELOC_NUMBER (R_SPARC_SIZE64, 87)
   
   EMPTY_RELOC  (R_SPARC_max_std)
 



More information about the Binutils mailing list