* 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:
Alan Modra
2005-02-03 03:30:49 +00:00
parent 474867c124
commit 11f25ea6ca
5 changed files with 32 additions and 0 deletions

View File

@@ -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: