Fix gas for x86-64
Andreas Jaeger
aj@suse.de
Tue Feb 20 01:48:00 GMT 2001
On x86-64 we didn't handle the GOTPCREL relocation for GOT correctly.
I'm committing the appended patch,
Andreas
2001-02-20 Bo Thorsen <bo@suse.de>
* config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
entry.
Index: config/tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.85
diff -u -r1.85 tc-i386.c
--- tc-i386.c 2001/02/13 12:44:19 1.85
+++ tc-i386.c 2001/02/20 09:43:32
@@ -1188,6 +1188,7 @@
|| fixP->fx_r_type == BFD_RELOC_386_GOT32
|| fixP->fx_r_type == BFD_RELOC_X86_64_PLT32
|| fixP->fx_r_type == BFD_RELOC_X86_64_GOT32
+ || fixP->fx_r_type == BFD_RELOC_X86_64_GOTPCREL
|| fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|| fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
return 0;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Binutils
mailing list