From: Alan Modra Date: Mon, 5 Jun 2017 01:32:42 +0000 (+0930) Subject: PR21529, internal error in linker.c X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfa8a3425800c868052808d4237a2c6f80e5b204;p=thirdparty%2Fbinutils-gdb.git PR21529, internal error in linker.c PR 21529 * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 903c64569f5..50fbe3a6778 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-06-05 Alan Modra + + PR 21529 + * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. + 2017-05-01 Senthil Kumar Selvaraj PR ld/21404 diff --git a/bfd/linker.c b/bfd/linker.c index 12c9fb0d870..c3ec4fefb64 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2091,7 +2091,7 @@ _bfd_generic_link_output_symbols (bfd *output_bfd, && bfd_hash_lookup (info->keep_hash, bfd_asymbol_name (sym), FALSE, FALSE) == NULL)) output = FALSE; - else if ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0) + else if ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0) { /* If this symbol is marked as occurring now, rather than at the end, output it now. This is used for