1 diff --git a/binutils-2.21/bfd/elflink.c b/binutils-2.21/bfd/elflink.c 2 index 51dae66..753bb9c 100644 3 --- a/binutils-2.21/bfd/elflink.c 4 +++ b/binutils-2.21/bfd/elflink.c 5 @@ -11575,6 +11575,9 @@ struct elf_gc_sweep_symbol_info 6 static bfd_boolean 7 elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data) 8 { 9 + if (h->root.type == bfd_link_hash_warning) 10 + h = (struct elf_link_hash_entry *) h->root.u.i.link; 11 + 12 if (!h->mark 13 && (((h->root.type == bfd_link_hash_defined 14 || h->root.type == bfd_link_hash_defweak) 15