[LLVMbugs] [Bug 17275] New: -fsanitize=address implies -undefined dynamic_lookup, hides real linker errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 18 11:29:14 PDT 2013


            Bug ID: 17275
           Summary: -fsanitize=address implies -undefined dynamic_lookup,
                    hides real linker errors
           Product: compiler-rt
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: dfarler at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using -fsanitize=address automatically implies -undefined dynamic_lookup,
hiding real link-time errors.

If we need to leave ___asan* undefined in a dynamic library to be provided by
an executable built with ASan, it needs to be done specifically and not in
blanket fashion, forcing an entire dynamic library suffer runtime errors. For
example, OS X ld has -U <symbol>, which allows a symbol to remain undefined at
link time. If there is a cross platform way to ignore generated undefined ASan
symbols, we should exploit it.

This implication has already let several link-time errors sneak through to
runtime, wasting time.

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/20130918/31c6623f/attachment.html>

More information about the llvm-bugs mailing list