[llvm-bugs] [Bug 35841] New: lld -flto breaks musl

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 5 20:39:37 PST 2018


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

            Bug ID: 35841
           Summary: lld -flto breaks musl
           Product: lld
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: bjornpagen at gmail.com
                CC: llvm-bugs at lists.llvm.org

Compiling musl with CFLAGS="-O2 -flto" breaks musl compilation. 
lld throws this error:

/usr/bin/x86_64-gentoo-linux-musl-ld: error: undefined symbol: __dls2
>>> referenced by ld-temp.o
>>>               lto.tmp:(_dlstart_c)
clang-5.0: 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/20180106/551ec260/attachment.html>


More information about the llvm-bugs mailing list