From: Nick Clifton Date: Wed, 23 Oct 2002 10:34:18 +0000 (+0000) Subject: Allow an absolute reference to _GLOBAL_TABLE_OFFSET_ to be converted into X-Git-Tag: jimb-dwarf-compression-021023-branchpoint~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8df7094c00913c6823914e988a4aafaa57a8b6d9;p=thirdparty%2Fbinutils-gdb.git Allow an absolute reference to _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 9af2e5b2f01..247590d5058 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-10-23 Nick Clifton + + * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to + _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc. + 2002-10-23 Hans-Peter Nilsson * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 17425e59906..12058668f01 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -10339,7 +10339,7 @@ tc_gen_reloc (section, fixp) } #ifdef OBJ_ELF - if (code == BFD_RELOC_32_PCREL + if ((code == BFD_RELOC_32_PCREL || code == BFD_RELOC_32) && GOT_symbol && fixp->fx_addsy == GOT_symbol) {