mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 22:40:24 +00:00
(generic_force_reloc): Do not call S_FORCE_RELOC if there is no symbol.
This commit is contained in:
parent
591e78ffc0
commit
61e192bf78
@ -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-
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user