aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-08-01 20:53:48 +0000
committerIan Lance Taylor <ian@airs.com>1994-08-01 20:53:48 +0000
commit30e5ad97e99fd2a3944ebeec57a0d89d0b06578f (patch)
tree93b6a913eb32ce4ba73985fa2e686395b679ac4d /bfd
parent5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b (diff)
downloadgdb-30e5ad97e99fd2a3944ebeec57a0d89d0b06578f.zip
gdb-30e5ad97e99fd2a3944ebeec57a0d89d0b06578f.tar.gz
gdb-30e5ad97e99fd2a3944ebeec57a0d89d0b06578f.tar.bz2
* elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
handling again.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elfcode.h9
2 files changed, 7 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9ced001..b348602 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
Mon Aug 1 12:04:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+ * elfcode.h (elf_adjust_dynamic_symbol): Correct weak symbol
+ handling again.
+
* elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
if there aren't any.
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 6e0f2d0..980e11c 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -5035,12 +5035,11 @@ elf_adjust_dynamic_symbol (h, data)
weakdef = h->weakdef;
BFD_ASSERT (weakdef->root.type == bfd_link_hash_defined);
BFD_ASSERT (weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC);
- if ((weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0
- || (weakdef->elf_link_hash_flags & ELF_LINK_HASH_REF_REGULAR) != 0)
+ if ((weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0)
{
- /* This symbol is defined or referenced by a regular object
- file, so we will not do anything special. Clear weakdef
- for the convenience of the processor backend. */
+ /* This symbol is defined by a regular object file, so we
+ will not do anything special. Clear weakdef for the
+ convenience of the processor backend. */
h->weakdef = NULL;
}
else