[cfe-commits] Add the support for AddressSanitizer on Darwin into the driver.

Alexander Potapenko glider at google.com
Wed Nov 30 05:14:10 PST 2011


See the attachment.

For Darwin executables we do the same thing as for Linux (see addASanRTLinux)
For Darwin shared libraries we need to explicitly mark the interface
functions inserted by ASan as dynamic_lookup, otherwise we'll get a
linker error.
Another solution is to pass "--undefined dynamic_lookup" to the
linker, but this won't allow the users to notice their own undefined
symbols.

WBR,
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-asan-mac.patch
Type: text/x-patch
Size: 3041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111130/f770d5c4/attachment.bin>


More information about the cfe-commits mailing list