projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591e78f
)
(generic_force_reloc): Do not call S_FORCE_RELOC if there is no symbol.
author
Nick Clifton
<nickc@redhat.com>
Mon, 29 Aug 2005 16:30:14 +0000
(16:30 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Mon, 29 Aug 2005 16:30:14 +0000
(16:30 +0000)
gas/ChangeLog
patch
|
blob
|
history
gas/write.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index 41ae66c7045208391e7b872d45ce1f7e6157be0c..da3a23863a828350526d0af5e4d5f13d24729473 100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,3
+1,8
@@
+2005-08-29 Nick Clifton <nickc@redhat.com>
+
+ * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if
+ there is no symbol.
+
2005-08-26 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (intel_e09): Set JumpAbsolute when seeing a PTR-
diff --git
a/gas/write.c
b/gas/write.c
index aca53b670d68f43444ac62e89b1b9504f4b60677..a90ee9df44474508d1bb70b6980861cdf585149e 100644
(file)
--- 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);
}