From: Nick Clifton Date: Mon, 29 Aug 2005 16:30:14 +0000 (+0000) Subject: (generic_force_reloc): Do not call S_FORCE_RELOC if there is no symbol. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61e192bf782832eae169c64de3400c6523fa5880;p=binutils-gdb.git (generic_force_reloc): Do not call S_FORCE_RELOC if there is no symbol. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 41ae66c7045..da3a23863a8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-08-29 Nick Clifton + + * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if + there is no symbol. + 2005-08-26 Jan Beulich * config/tc-i386.c (intel_e09): Set JumpAbsolute when seeing a PTR- diff --git a/gas/write.c b/gas/write.c index aca53b670d6..a90ee9df444 100644 --- a/gas/write.c +++ b/gas/write.c @@ -316,6 +316,9 @@ generic_force_reloc (fixS *fix) || fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY) return 1; + if (fix->fx_addsy == NULL) + return 0; + return S_FORCE_RELOC (fix->fx_addsy, fix->fx_subsy == NULL); }