forked from OSchip/llvm-project
Force __asan_set_death_callback into the resulting binary.
llvm-svn: 151808
This commit is contained in:
parent
f6298e9281
commit
8e9d772c5a
|
@ -257,6 +257,7 @@ static NOINLINE void force_interface_symbols() {
|
|||
__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 @@ void __asan_handle_no_return() {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue