[llvm-bugs] [Bug 30333] New: Asan fails when linking with -Wl, --no-undefined

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 8 12:36:08 PDT 2016


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

            Bug ID: 30333
           Summary: Asan fails when linking with -Wl,--no-undefined
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jpakkane at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When linking a target like this:

clang <stuff> -fsanitize=address -Wl,--no-undefined

it will error out due to missing asan symbols. For the same command line GCC
links without errors which makes sense because -fsanitize=address implies the
use of asan libraries.

Please make clang also add the necessary libs automatically when using
-fsanitize=address. Thanks.

Bug originally reported here: https://github.com/mesonbuild/meson/issues/764

-- 
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/20160908/70353cc2/attachment.html>


More information about the llvm-bugs mailing list