aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-03 03:30:49 +0000
committerAlan Modra <amodra@gmail.com>2005-02-03 03:30:49 +0000
commit11f25ea6caba4354a6c58653e92e125313d5a659 (patch)
tree2a7d1be8902c9e3d51858f619791248536c23c86 /bfd/linker.c
parent474867c1241877200fa3d68161adea76c4f2cee9 (diff)
downloadgdb-11f25ea6caba4354a6c58653e92e125313d5a659.zip
gdb-11f25ea6caba4354a6c58653e92e125313d5a659.tar.gz
gdb-11f25ea6caba4354a6c58653e92e125313d5a659.tar.bz2
include/
* bfdlink.h (struct bfd_link_hash_entry): Add u.undef.weak. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. * elflink.c (elf_smash_syms): Restore symbols that were undefweak before the as-needed lib was loaded. Abort on unexpected refs.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index 34f66d1..5868b95 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1604,6 +1604,7 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info,
/* Make a new weak undefined symbol. */
h->type = bfd_link_hash_undefweak;
h->u.undef.abfd = abfd;
+ h->u.undef.weak = abfd;
break;
case CDEF: