http://sourceware.org/bugzilla/show_bug.cgi?id=15107

             Bug #: 15107
           Summary: Linking against GNU_UNIQUE symbol creates GNU_UNIQUE
                    symbol without selecting GNU ABI
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: minor
          Priority: P2
         Component: ld
        AssignedTo: unassig...@sourceware.org
        ReportedBy: fwei...@redhat.com
    Classification: Unclassified


Created attachment 6848
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6848
unique_shared_ref.s

Instructions (as tested on Fedora 18 x86_64):

$ as unique_shared_ref.s -o unique_shared_ref.o
$ as unique_shared.s -o unique_shared.o
$ ld -shared -o unique_shared_ref.so unique_shared_ref.o
$ ld -o unique_shared_ref  unique_shared_ref.o unique_shared.so
$ readelf -s unique_shared_ref | grep UNIQ
     1: 0000000000000000     0 OBJECT  UNIQUE DEFAULT  UND b
    11: 0000000000000000     0 OBJECT  UNIQUE DEFAULT  UND b
$ readelf -h unique_shared_ref  | grep ABI
  OS/ABI:                            UNIX - System V
  ABI Version:                       0

Either the ABI should be set to GNU, or GNU_UNIQUE shouldn't be used for the
symbol reference.

See this mailing list thread:
<http://sourceware.org/ml/binutils/2013-01/msg00362.html>

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to