diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-01-14 02:18:21 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-01-14 02:18:21 +0000 |
commit | 5d6704f16e14130e9194a56981f99e8bec1dc0e6 (patch) | |
tree | 812a0dc5093a12994dc898e34235aa966c17773c /ld/ldlang.c | |
parent | 8f90eb16f158c3578e056c10f6c35fc628125c6e (diff) | |
download | binutils-redhat-5d6704f16e14130e9194a56981f99e8bec1dc0e6.tar.gz |
PR ld/12339
* ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index c2a768ece3..7ffe760371 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2089,6 +2089,9 @@ static bfd_boolean sort_def_symbol (struct bfd_link_hash_entry *hash_entry, void *info ATTRIBUTE_UNUSED) { + if (hash_entry->type == bfd_link_hash_warning) + hash_entry = (struct bfd_link_hash_entry *) hash_entry->u.i.link; + if (hash_entry->type == bfd_link_hash_defined || hash_entry->type == bfd_link_hash_defweak) { |