[llvm-bugs] [Bug 31215] New: [ELF] - LLD fails to link "hello world" i386 application.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 30 08:51:01 PST 2016


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

            Bug ID: 31215
           Summary: [ELF] - LLD fails to link "hello world" i386
                    application.
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: grimar at accesssoftek.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Steps to reproduce:

1) Create empty test.cpp
2) ~/LLVM/build/bin/clang -m32 -fPIC -shared -fuse-ld=lld -Wl,--reproduce,repro
test.cpp -o test.lld

++ /home/umb/LLVM/build/bin/clang -m32 -fPIC -shared -fuse-ld=lld
-Wl,--reproduce,repro test.cpp -o test.lld
/home/umb/LLVM/build/bin/ld.lld: error:
crtstuff.c:(.text.__x86.get_pc_thunk.bx+0x0): duplicate symbol
'__x86.get_pc_thunk.bx'
/home/umb/LLVM/build/bin/ld.lld: error:
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../i386-linux-gnu/crti.o:(function
__x86.get_pc_thunk.bx): previous definition was here
clang-4.0: error: linker command failed with exit code 1 (use -v to see
invocation)

bfd links fine

-- 
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/20161130/9cef127d/attachment-0001.html>


More information about the llvm-bugs mailing list