(obj_crawl_symbol_chain): Skip defined symbols which resolve to symbolic values.
This commit is contained in:
parent
25c80428af
commit
8d8199c311
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-12-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* config/obj-aout.c (obj_crawl_symbol_chain): Skip defined
|
||||||
|
symbols which resolve to symbolic values.
|
||||||
|
|
||||||
2003-12-13 Alan Modra <amodra@bigpond.net.au>
|
2003-12-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* config/obj-elf.c: Convert to C90, remove unneeded prototypes and
|
* config/obj-elf.c: Convert to C90, remove unneeded prototypes and
|
||||||
|
|
|
@ -469,9 +469,13 @@ obj_crawl_symbol_chain (headers)
|
||||||
resolve_symbol_value (symbolP);
|
resolve_symbol_value (symbolP);
|
||||||
|
|
||||||
/* Skip symbols which were equated to undefined or common
|
/* Skip symbols which were equated to undefined or common
|
||||||
symbols. */
|
symbols. Also skip defined uncommon symbols which can
|
||||||
|
be resolved since in this case they should have been
|
||||||
|
resolved to a non-symbolic constant. */
|
||||||
if (symbolP->sy_value.X_op == O_symbol
|
if (symbolP->sy_value.X_op == O_symbol
|
||||||
&& (! S_IS_DEFINED (symbolP) || S_IS_COMMON (symbolP)))
|
&& (! S_IS_DEFINED (symbolP)
|
||||||
|
|| S_IS_COMMON (symbolP)
|
||||||
|
|| symbol_resolved_p (symbolP)))
|
||||||
{
|
{
|
||||||
*symbolPP = symbol_next (symbolP);
|
*symbolPP = symbol_next (symbolP);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue