diff options
author | Nick Clifton <nickc@redhat.com> | 2005-08-29 16:30:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-08-29 16:30:14 +0000 |
commit | c32fca5d3b13d0aec0444a903c87d1544a6f84cd (patch) | |
tree | 6acc7da70ab687b91ee4c03cccd8926c05c818ff /gas/write.c | |
parent | d5076d5cbd9b6652a7fe6698e1d355b58037241f (diff) | |
download | binutils-redhat-c32fca5d3b13d0aec0444a903c87d1544a6f84cd.tar.gz |
(generic_force_reloc): Do not call S_FORCE_RELOC if there is no symbol.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c index aca53b670d..a90ee9df44 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); } |