This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

PATCH: Define R_386_SIZE32/R_X86_64_SIZE32/R_X86_64_SIZE64


Hi,

I checked in this patch to define R_386_SIZE32, R_X86_64_SIZE32 and
R_X86_64_SIZE64, which were defined in 2005:

http://web.archiveorange.com/archive/v/KGyKyS8JaGMawGhL882p


H.J.
---
2013-01-16  H.J. Lu  <hongjiu.lu@intel.com>

	* i386.h (R_386_SIZE32): Fill it.
	* x86-64.h (R_X86_64_SIZE32): Likewise.
	(R_X86_64_SIZE64): Likewise.

diff --git a/include/elf/i386.h b/include/elf/i386.h
index a12225f..c475092 100644
--- a/include/elf/i386.h
+++ b/include/elf/i386.h
@@ -62,7 +62,7 @@ START_RELOC_NUMBERS (elf_i386_reloc_type)
      RELOC_NUMBER (R_386_TLS_DTPMOD32, 35)
      RELOC_NUMBER (R_386_TLS_DTPOFF32, 36)
      RELOC_NUMBER (R_386_TLS_TPOFF32,  37)
-/* 38 */
+     RELOC_NUMBER (R_386_SIZE32,       38) /* 32-bit symbol size */
      RELOC_NUMBER (R_386_TLS_GOTDESC,  39)
      RELOC_NUMBER (R_386_TLS_DESC_CALL,40)
      RELOC_NUMBER (R_386_TLS_DESC,     41)
diff --git a/include/elf/x86-64.h b/include/elf/x86-64.h
index 9022f84..0ce92cd 100644
--- a/include/elf/x86-64.h
+++ b/include/elf/x86-64.h
@@ -63,7 +63,8 @@ START_RELOC_NUMBERS (elf_x86_64_reloc_type)
      						 that PLT entry is needed */
      RELOC_NUMBER (R_X86_64_PLTOFF64, 31)     /* 64 bit GOT relative offset
      						 to PLT entry */
-     /* 32 .. 33 */
+     RELOC_NUMBER (R_X86_64_SIZE32,   32)     /* 32-bit symbol size */
+     RELOC_NUMBER (R_X86_64_SIZE64,   33)     /* 64-bit symbol size */
      RELOC_NUMBER (R_X86_64_GOTPC32_TLSDESC, 34)
 					      /* 32 bit signed pc relative
 						 offset to TLS descriptor


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