* ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
+2011-01-14 J. Park <grassman@gmail.com>
+
+ PR ld/12339
+ * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
+
2011-01-14 Alan Modra <amodra@gmail.com>
* Makefile.am: Sort emulation rules.
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)
{