[PATCH] Optional support for dynamic Asan runtime

Alexey Samsonov samsonov at google.com
Wed Mar 19 08:06:36 PDT 2014



================
Comment at: lib/asan/asan_rtl.cc:563
@@ +562,3 @@
+  AsanInitializer() {
+    AsanCheckIncompatibleRT();
+    if (!asan_inited) {
----------------
Can't you simply call __asan_init() here? It also calls AsanCheckIncompatibleRT, checks for asan_inited, and you may add a call to AsanCheckDynamicRTPrereqs under #if ASAN_DYNAMIC


http://llvm-reviews.chandlerc.com/D3042



More information about the llvm-commits mailing list