diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-03-03 21:31:10 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2004-03-03 21:31:10 +0000 |
commit | 02bb6eae739e376e96c742725ff580788dfc593c (patch) | |
tree | d8e6cdcc1f33c0d24dd91accce03331422951743 /bfd/elflink.c | |
parent | d92017639536032963c81eb036ff34fb67c48b46 (diff) | |
download | gdb-02bb6eae739e376e96c742725ff580788dfc593c.zip gdb-02bb6eae739e376e96c742725ff580788dfc593c.tar.gz gdb-02bb6eae739e376e96c742725ff580788dfc593c.tar.bz2 |
* elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
undefined symbols as hash_new.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index b992c39..5051364 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -430,6 +430,13 @@ bfd_elf_record_link_assignment (bfd *output_bfd ATTRIBUTE_UNUSED, if (h == NULL) return FALSE; + /* Since we're defining the symbol, don't let it seem to have not + been defined. record_dynamic_symbol and size_dynamic_sections + may depend on this. */ + if (h->root.type == bfd_link_hash_undefweak + || h->root.type == bfd_link_hash_undefined) + h->root.type = bfd_link_hash_new; + if (h->root.type == bfd_link_hash_new) h->elf_link_hash_flags &= ~ELF_LINK_NON_ELF; |