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]
Other format: [Raw text]

Re: [PATCH] x86-64: support newer relocation types


>>> "H. J. Lu" <hjl@lucon.org> 18.06.05 00:35:26 >>>
>On Wed, Jun 08, 2005 at 08:17:55AM -0600, Jan Beulich wrote:
>> This adds support for the new x86-64 relocation types added in ABI draft
>> 0.95 (or in a slightly earlier version). In addition, it fixes the overflow
>> complaint types for two x86-64 and one i386 relocation types.
>> 
>> Built and tested on i686-pc-linux-gnu and x86_64-unknown-linux-gnu.
>> 
>> Jan
>> 
>> bfd/
>> 2005-06-08  Jan Beulich  <jbeulich@novell.com>
>> 
>> 	* bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
>> 	and BFD_RELOC_X86_64_GOTPC32.
>
>bfd-in2.h is a generated file. Please put new relocations in reloc.c.

Sorry, I failed to recognize that (though it should have been obvious). Applying the below as obvious.

Jan

bfd/
2005-06-08  Jan Beulich  <jbeulich@novell.com>

	* reloc.c (bfd_reloc_code_real): Add BFD_RELOC_X86_64_GOTOFF64 and
	BFD_RELOC_X86_64_GOTPC32.

--- /home/jbeulich/src/binutils/mainline/2005-06-16/bfd/reloc.c	2005-06-16 10:41:52.000000000 +0200
+++ 2005-06-16/bfd/reloc.c	2005-06-20 09:11:46.044507296 +0200
@@ -2362,6 +2362,10 @@ ENUMX
   BFD_RELOC_X86_64_GOTTPOFF
 ENUMX
   BFD_RELOC_X86_64_TPOFF32
+ENUMX
+  BFD_RELOC_X86_64_GOTOFF64
+ENUMX
+  BFD_RELOC_X86_64_GOTPC32
 ENUMDOC
   x86-64/elf relocations
 



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