[llvm-commits] [compiler-rt] r151808 - /compiler-rt/trunk/lib/asan/asan_rtl.cc
Alexander Potapenko
glider at google.com
Thu Mar 1 06:39:22 PST 2012
Author: glider
Date: Thu Mar 1 08:39:21 2012
New Revision: 151808
URL: http://llvm.org/viewvc/llvm-project?rev=151808&view=rev
Log:
Force __asan_set_death_callback into the resulting binary.
Modified:
compiler-rt/trunk/lib/asan/asan_rtl.cc
Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=151808&r1=151807&r2=151808&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Thu Mar 1 08:39:21 2012
@@ -257,6 +257,7 @@
__asan_register_global(0, 0, NULL);
__asan_register_globals(NULL, 0);
__asan_unregister_globals(NULL, 0);
+ __asan_set_death_callback(NULL);
__asan_set_error_report_callback(NULL);
}
}
@@ -301,7 +302,7 @@
PoisonShadow(bottom, top - bottom, 0);
}
-void __asan_set_death_callback(void (*callback)(void)) {
+void NOINLINE __asan_set_death_callback(void (*callback)(void)) {
death_callback = callback;
}
More information about the llvm-commits
mailing list