* linker.c (link_action): If an undefined reference follows an

undefined weak reference, change the type to undefined.
	* elflink.h (elf_link_add_archive_symbols): Don't record an
	undefined weak reference as defined, in case it turns into a real
	undefined reference later in the same archive.
This commit is contained in:
Ian Lance Taylor 1995-08-21 15:12:34 +00:00
parent fa296a0c44
commit 68807a39e4
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
Mon Aug 21 11:10:32 1995 Ian Lance Taylor <ian@cygnus.com>
* linker.c (link_action): If an undefined reference follows an
undefined weak reference, change the type to undefined.
* elflink.h (elf_link_add_archive_symbols): Don't record an
undefined weak reference as defined, in case it turns into a real
undefined reference later in the same archive.
Thu Aug 17 16:29:09 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
* coff-sh.c (sh_relax_section): Cast value for used_by_bfd field

View File

@ -155,7 +155,8 @@ elf_link_add_archive_symbols (abfd, info)
continue;
if (h->root.type != bfd_link_hash_undefined)
{
defined[i] = true;
if (h->root.type != bfd_link_hash_undefweak)
defined[i] = true;
continue;
}