mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user