[llvm-bugs] [Bug 26705] New: lld-linked libc++.so, libc++abi.so has undefined _GLOBAL_OFFSET_TABLE_ symbol

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 22 17:29:29 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26705

            Bug ID: 26705
           Summary: lld-linked libc++.so, libc++abi.so has undefined
                    _GLOBAL_OFFSET_TABLE_ symbol
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

linked with lld:

% nm build-lld-selfhost2/lib/libc++abi.so | grep 'GLOBAL_OFFSET'
                 U _GLOBAL_OFFSET_TABLE_

with gnu ld:

% nm build-nodebug/lib/libc++abi.so | grep 'GLOBAL_OFFSET'      
00000000002592e0 a _GLOBAL_OFFSET_TABLE_

and link failures are observed in 'check-libcxxabi'

/usr/bin/ld:
/tank/emaste/src/llvm/build-lld-selfhost2/projects/libcxxabi/test/Output/catch_pointer_reference.pass.cpp.exe:
hidden symbol `_GLOBAL_OFFSET_TABLE_' in /usr/lib/crt1.o is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
CC: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160223/18887d84/attachment.html>


More information about the llvm-bugs mailing list