diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-10-23 10:43:56 -0700 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-10-23 10:43:57 -0700 |
commit | 097cb925ecdcb4d93ef442e2783b5072d3442bcc (patch) | |
tree | 4c49900a57a62a2666882c97e6b3b51762c69b60 | |
parent | 9881e208908437a105f55ec213915b313ed7bd74 (diff) | |
parent | 3db8634669090686d790b61700a84c25eed74e04 (diff) | |
download | toolchain_binutils-097cb925ecdcb4d93ef442e2783b5072d3442bcc.zip toolchain_binutils-097cb925ecdcb4d93ef442e2783b5072d3442bcc.tar.gz toolchain_binutils-097cb925ecdcb4d93ef442e2783b5072d3442bcc.tar.bz2 |
Merge "Fix ld gc-sections"
-rw-r--r-- | binutils-2.21/bfd/elflink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils-2.21/bfd/elflink.c b/binutils-2.21/bfd/elflink.c index 51dae66..753bb9c 100644 --- a/binutils-2.21/bfd/elflink.c +++ b/binutils-2.21/bfd/elflink.c @@ -11575,6 +11575,9 @@ struct elf_gc_sweep_symbol_info static bfd_boolean elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data) { + if (h->root.type == bfd_link_hash_warning) + h = (struct elf_link_hash_entry *) h->root.u.i.link; + if (!h->mark && (((h->root.type == bfd_link_hash_defined || h->root.type == bfd_link_hash_defweak) |