2005-10-25 H.J. Lu <hongjiu.lu@intel.com>
* write.c (adjust_reloc_syms): Undo the change made on 2005-04-26 to allow local symbol set to undefined symbol.
This commit is contained in:
parent
7fb85e4190
commit
50afb01e1a
2 changed files with 6 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* write.c (adjust_reloc_syms): Undo the change made on
|
||||||
|
2005-04-26 to allow local symbol set to undefined symbol.
|
||||||
|
|
||||||
2005-10-24 H.J. Lu <hongjiu.lu@intel.com>
|
2005-10-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* Makefile.am (bfin-parse.tab.h): Removed.
|
* Makefile.am (bfin-parse.tab.h): Removed.
|
||||||
|
|
11
gas/write.c
11
gas/write.c
|
@ -681,17 +681,8 @@ adjust_reloc_syms (bfd *abfd ATTRIBUTE_UNUSED,
|
||||||
if (symbol_equated_reloc_p (sym)
|
if (symbol_equated_reloc_p (sym)
|
||||||
|| S_IS_WEAKREFR (sym))
|
|| S_IS_WEAKREFR (sym))
|
||||||
{
|
{
|
||||||
symbolS *new_sym
|
|
||||||
= symbol_get_value_expression (sym)->X_add_symbol;
|
|
||||||
const char *name = S_GET_NAME (sym);
|
|
||||||
if (!S_IS_COMMON (new_sym)
|
|
||||||
&& !TC_FAKE_LABEL (name)
|
|
||||||
&& !S_IS_WEAKREFR (sym)
|
|
||||||
&& (!S_IS_EXTERNAL (sym) || S_IS_LOCAL (sym)))
|
|
||||||
as_bad (_("Local symbol `%s' can't be equated to undefined symbol `%s'"),
|
|
||||||
name, S_GET_NAME (new_sym));
|
|
||||||
fixp->fx_offset += symbol_get_value_expression (sym)->X_add_number;
|
fixp->fx_offset += symbol_get_value_expression (sym)->X_add_number;
|
||||||
sym = new_sym;
|
sym = symbol_get_value_expression (sym)->X_add_symbol;
|
||||||
fixp->fx_addsy = sym;
|
fixp->fx_addsy = sym;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue