[LLVMbugs] [Bug 20246] New: clang-cl needs to put the runtime libraries in a drectve section to enable linking ASAN objects with link.exe
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 8 07:18:56 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20246
Bug ID: 20246
Summary: clang-cl needs to put the runtime libraries in a
drectve section to enable linking ASAN objects with
link.exe
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: ehsan at mozilla.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Right now ASAN on Windows expects that you link with clang-cl
-fsanitize=address so that the driver would pass the right library names to the
linker. This was done in r189389 AFAICT.
This has the huge downside of being too difficult to get to work on projects
that link with link.exe directly (such as Firefox). I think a much better
approach would be to put the path to those libraries in a .drectve section to
pass it to the linker from within the obj file, to avoid needing to pass in the
libraries through the clang-cl driver.
I'm planning on doing this, any objections?
--
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/20140708/fced4a99/attachment.html>
More information about the llvm-bugs
mailing list