From: Ian Lance Taylor Date: Mon, 21 Aug 1995 15:12:34 +0000 (+0000) Subject: * linker.c (link_action): If an undefined reference follows an X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68807a39e419aeceff65520dcd8869a29611e7d8;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 89b5e114750..bd93fea8f90 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +Mon Aug 21 11:10:32 1995 Ian Lance Taylor + + * 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 * coff-sh.c (sh_relax_section): Cast value for used_by_bfd field diff --git a/bfd/elflink.h b/bfd/elflink.h index 07ab9bbb989..b625ae09b33 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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; }