aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-08-29 16:30:14 +0000
committerNick Clifton <nickc@redhat.com>2005-08-29 16:30:14 +0000
commit61e192bf782832eae169c64de3400c6523fa5880 (patch)
treec5bdb232fc5d067aa30fd345040b9f5080d2f6fe /gas/write.c
parent591e78ffc0230ef35359700d8b567150e0aeb33c (diff)
downloadgdb-61e192bf782832eae169c64de3400c6523fa5880.zip
gdb-61e192bf782832eae169c64de3400c6523fa5880.tar.gz
gdb-61e192bf782832eae169c64de3400c6523fa5880.tar.bz2
(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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index aca53b6..a90ee9d 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);
}