Fix load of archive element with common def for -u sym
authorAlan Modra <amodra@gmail.com>
Tue, 5 Aug 2014 01:18:47 +0000 (10:48 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 5 Aug 2014 01:18:47 +0000 (10:48 +0930)
commit02eb0a49bceb35e4b0503e6ffc11e85151dbc571
treec86b7958a0d272b86424ae7a6a38565472834d85
parent13e570f80cbfb299a8858ce6830e91a6cb40ab7b
Fix load of archive element with common def for -u sym

* linker.c (generic_link_check_archive_element): Move handling
of command link -u symbols with a common symbol def to the
code handling non-common symbols so that archive element symbols
are loaded.  Use generic_link_add_object_symbols.
bfd/ChangeLog
bfd/linker.c