[PATCH] [compiler-rt] Ensure AsanInitFromRtl is called from a static initializer on OS X by using ASAN_DYNAMIC=1

Kuba Brecka kuba.brecka at gmail.com
Thu Jan 22 11:08:09 PST 2015


In http://reviews.llvm.org/D7117#112336, @ygribov wrote:

> Can you implement AsanCheckDynamicRTPrereqs on Mac? This function is supposed to check that dynamic runtime is loaded properly. On Linux this boils down to ensuring that it comes first in dynamic library list. I guess on Darwin we simply need to check DYLD_INSERT_LIBRARIES?


This is already done in asan_mac.cc in MaybeReexec.  We could probably get rid of it and move the code to AsanCheckDynamicRTPrereqs instead, but I'd rather do that as a separate patch, since that would be a NFC refactoring, whereas this patch actually changes behavior.


http://reviews.llvm.org/D7117

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list