PR21529, internal error in linker.c

H.J. Lu hjl.tools@gmail.com
Mon Jun 5 21:55:00 GMT 2017


On Mon, Jun 5, 2017 at 1:25 AM, Alan Modra <amodra@gmail.com> wrote:
>         PR 21529
>         * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
>
> diff --git a/bfd/ChangeLog b/bfd/ChangeLog
> index 27a1e8c..f4a6afa 100644
> --- a/bfd/ChangeLog
> +++ b/bfd/ChangeLog
> @@ -1,3 +1,8 @@
> +2017-06-05  Alan Modra  <amodra@gmail.com>
> +
> +       PR 21529
> +       * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
> +
>  2017-06-01  John Baldwin  <jhb@FreeBSD.org>
>
>         * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to
> diff --git a/bfd/linker.c b/bfd/linker.c
> index 9861259..f94d2f8 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
>

I checked in this to add a testcase.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-testcase-for-PR-ld-21529.patch
Type: text/x-patch
Size: 2416 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170605/3ad45098/attachment.bin>


More information about the Binutils mailing list