diff options
author | Dave Korn <dave.korn@artimi.com> | 2011-03-10 10:27:50 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2011-03-10 10:27:50 +0000 |
commit | 893c9cf4657ad33cdf1ad45bb8ba2ed8817654d2 (patch) | |
tree | 0109c1323b96786b5f6553eed3430989fcfb8643 /ld/plugin.c | |
parent | cccf13bf3f182adacec47a4770890b8750063d94 (diff) | |
download | binutils-redhat-893c9cf4657ad33cdf1ad45bb8ba2ed8817654d2.tar.gz |
[PATCH] Respect symbol wrappers when computing symbol resolutions.
ld/ChangeLog:
2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
* plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 2fd82910c5..d4bbfe7852 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -456,9 +456,12 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms) struct bfd_link_hash_entry *blhe; bfd_boolean ironly; asection *owner_sec; - - blhe = bfd_link_hash_lookup (link_info.hash, syms[n].name, - FALSE, FALSE, TRUE); + if (syms[n].def != LDPK_UNDEF) + blhe = bfd_link_hash_lookup (link_info.hash, syms[n].name, + FALSE, FALSE, TRUE); + else + blhe = bfd_wrapped_link_hash_lookup (link_info.output_bfd, &link_info, + syms[n].name, FALSE, FALSE, TRUE); if (!blhe) { syms[n].resolution = LDPR_UNKNOWN; |