mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
(tc_gen_reloc): Fix handling of GOTPC relocs.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
1999-06-12 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
|
* config/tc-arm.c (tc_gen_reloc): Fix handling of GOTPC relocs.
|
||||||
|
|
||||||
1999-06-13 Ian Lance Taylor <ian@zembu.com>
|
1999-06-13 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
* write.c (adjust_reloc_syms): Rather than never reducing reloc
|
* write.c (adjust_reloc_syms): Rather than never reducing reloc
|
||||||
|
@ -5713,7 +5713,10 @@ tc_gen_reloc (section, fixp)
|
|||||||
if (code == BFD_RELOC_32_PCREL
|
if (code == BFD_RELOC_32_PCREL
|
||||||
&& GOT_symbol
|
&& GOT_symbol
|
||||||
&& fixp->fx_addsy == GOT_symbol)
|
&& fixp->fx_addsy == GOT_symbol)
|
||||||
code = BFD_RELOC_ARM_GOTPC;
|
{
|
||||||
|
code = BFD_RELOC_ARM_GOTPC;
|
||||||
|
reloc->addend = fixp->fx_offset = reloc->address;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
|
reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
|
||||||
|
Reference in New Issue
Block a user