When examining weak symbols, follow indirect links.
This commit is contained in:
parent
021c2b5e4b
commit
8e67855b57
|
@ -1,3 +1,8 @@
|
||||||
|
2002-09-19 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* elflink.h (elf_fix_symbol_flags): When examining weak symbols,
|
||||||
|
follow indirect links.
|
||||||
|
|
||||||
2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
|
2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
|
||||||
|
|
||||||
* ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
|
* ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
|
||||||
|
|
|
@ -3886,9 +3886,12 @@ elf_fix_symbol_flags (h, eif)
|
||||||
{
|
{
|
||||||
struct elf_link_hash_entry *weakdef;
|
struct elf_link_hash_entry *weakdef;
|
||||||
|
|
||||||
|
weakdef = h->weakdef;
|
||||||
|
if (h->root.type == bfd_link_hash_indirect)
|
||||||
|
h = (struct elf_link_hash_entry *) h->root.u.i.link;
|
||||||
|
|
||||||
BFD_ASSERT (h->root.type == bfd_link_hash_defined
|
BFD_ASSERT (h->root.type == bfd_link_hash_defined
|
||||||
|| h->root.type == bfd_link_hash_defweak);
|
|| h->root.type == bfd_link_hash_defweak);
|
||||||
weakdef = h->weakdef;
|
|
||||||
BFD_ASSERT (weakdef->root.type == bfd_link_hash_defined
|
BFD_ASSERT (weakdef->root.type == bfd_link_hash_defined
|
||||||
|| weakdef->root.type == bfd_link_hash_defweak);
|
|| weakdef->root.type == bfd_link_hash_defweak);
|
||||||
BFD_ASSERT (weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC);
|
BFD_ASSERT (weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC);
|
||||||
|
|
Loading…
Reference in New Issue