aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-04-30 08:48:55 +0000
committerAlan Modra <amodra@gmail.com>2004-04-30 08:48:55 +0000
commit20f0a1ada4858aa084cb914cd7381482c086cdf5 (patch)
treebac4e83127a6085a774704ca97da5fea8ad6e6fc /bfd/elflink.c
parent67ab9a76b5c89dfb28352b765be39f93e04d5f25 (diff)
downloadgdb-20f0a1ada4858aa084cb914cd7381482c086cdf5.zip
gdb-20f0a1ada4858aa084cb914cd7381482c086cdf5.tar.gz
gdb-20f0a1ada4858aa084cb914cd7381482c086cdf5.tar.bz2
* elflink.c (elf_gc_mark): Follow indirect and warning syms.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 38a89fd..a4adaf5 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8173,6 +8173,9 @@ elf_gc_mark (struct bfd_link_info *info,
|| ELF_ST_BIND (isym[r_symndx].st_info) != STB_LOCAL)
{
h = sym_hashes[r_symndx - extsymoff];
+ while (h->root.type == bfd_link_hash_indirect
+ || h->root.type == bfd_link_hash_warning)
+ h = (struct elf_link_hash_entry *) h->root.u.i.link;
rsec = (*gc_mark_hook) (sec, info, rel, h, NULL);
}
else