diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-02-03 03:30:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-02-03 03:30:49 +0000 |
commit | 6a451d1dd2202a6961a021285c53cfb8bb49cf86 (patch) | |
tree | c375baed51f06eee5ffa9639178e55b75ee9ddd9 /bfd/linker.c | |
parent | 506db9e440a874d4ac6c62b3230f221a97e0840b (diff) | |
download | gdb-6a451d1dd2202a6961a021285c53cfb8bb49cf86.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 34f66d1e94a..5868b955d13 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: |