[llvm-bugs] [Bug 28179] New: [LTO] Build of FreeBSD rtld(1) fails with undefined symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 17 12:00:34 PDT 2016


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

            Bug ID: 28179
           Summary: [LTO] Build of FreeBSD rtld(1) fails with undefined
                    symbols
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ sh blah.sh
undefined symbol: __stack_chk_fail
undefined symbol: __libc_sigaction in
./home/buildbot/obj/usr/home/buildbot/freebsd/tmp/usr/lib/libc_pic.a(abort.So)

$ ~/work/llvm/build-release/bin/llvm-nm -print-armap libc_pic.a  |grep
__stack_chk_fail
__stack_chk_fail in stack_protector.So
---------------- T __stack_chk_fail

$ ~/work/llvm/build-release/bin/llvm-nm -print-armap libc_pic.a  |grep
__libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
---------------- T __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction

Notably, __libc_sigaction doesn't show up in the armap.
It is defined in sigaction.So
sigaction.So:
                 U __libc_interposing
---------------- T __libc_sigaction
---------------- T __sigaction

-- 
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/20160617/bbc847f0/attachment.html>


More information about the llvm-bugs mailing list