From 20f0a1ada4858aa084cb914cd7381482c086cdf5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 30 Apr 2004 08:48:55 +0000 Subject: [PATCH] * elflink.c (elf_gc_mark): Follow indirect and warning syms. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 72da8013b53..1221ebd41ed 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2004-04-30 Alan Modra + + * elflink.c (elf_gc_mark): Follow indirect and warning syms. + 2004-04-30 Hans-Peter Nilsson * configure.in: Update version to 2.15.91. diff --git a/bfd/elflink.c b/bfd/elflink.c index 38a89fd6fe1..a4adaf52f21 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 -- 2.30.2