aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-01 16:33:01 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-01 16:33:01 +0000
commit0db6249c778a75ca251e025dbd54b185cf536a9e (patch)
tree9c51e1b038d80df2aaad4c70c4fd70fa4ba13f57 /bfd/elflink.h
parenta5cb84dd6f9a5356e601da8ce57ebc88fd6a953a (diff)
downloadgdb-0db6249c778a75ca251e025dbd54b185cf536a9e.zip
gdb-0db6249c778a75ca251e025dbd54b185cf536a9e.tar.gz
gdb-0db6249c778a75ca251e025dbd54b185cf536a9e.tar.bz2
* elflink.h (elf_link_add_object_symbols): Only put a symbol from
a dynamic object in the dynamic symbol table if it is referenced or defined by a regular object. PR 10711.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 6326121..dae7597 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -827,12 +827,8 @@ elf_link_add_object_symbols (abfd, info)
new_flag = ELF_LINK_HASH_REF_DYNAMIC;
else
new_flag = ELF_LINK_HASH_DEF_DYNAMIC;
- if ((old_flags & new_flag) != 0
- || (old_flags & (ELF_LINK_HASH_DEF_REGULAR
- | ELF_LINK_HASH_REF_REGULAR)) != 0
- || (h->weakdef != NULL
- && (old_flags & (ELF_LINK_HASH_DEF_DYNAMIC
- | ELF_LINK_HASH_REF_DYNAMIC)) != 0))
+ if ((old_flags & (ELF_LINK_HASH_DEF_REGULAR
+ | ELF_LINK_HASH_REF_REGULAR)) != 0)
dynsym = true;
}