]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR21529, internal error in linker.c
authorAlan Modra <amodra@gmail.com>
Mon, 5 Jun 2017 01:32:42 +0000 (11:02 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 5 Jun 2017 08:26:44 +0000 (17:56 +0930)
PR 21529
* linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.

bfd/ChangeLog
bfd/linker.c

index 903c64569f5eb25fa1c8df6d712084eb9695fb37..50fbe3a67782a6760ab8901b916e951616d42675 100644 (file)
@@ -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-05-01  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
 
        PR ld/21404
index 12c9fb0d870d451399c803bc4aa2721f38b645b5..c3ec4fefb64836129008a8e7a70bc29a82b3e114 100644 (file)
@@ -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