Index: compiler-rt/lib/asan/asan_fake_stack.cc =================================================================== --- compiler-rt/lib/asan/asan_fake_stack.cc +++ compiler-rt/lib/asan/asan_fake_stack.cc @@ -192,6 +192,8 @@ } static FakeStack *GetFakeStackFast() { + if (SANITIZER_RTEMS && !asan_inited) + return nullptr; if (FakeStack *fs = GetTLSFakeStack()) return fs; if (!__asan_option_detect_stack_use_after_return) Index: compiler-rt/lib/asan/asan_rtl.cc =================================================================== --- compiler-rt/lib/asan/asan_rtl.cc +++ compiler-rt/lib/asan/asan_rtl.cc @@ -524,6 +524,9 @@ using namespace __asan; // NOLINT void NOINLINE __asan_handle_no_return() { + if (SANITIZER_RTEMS && !asan_inited) + return; + if (asan_init_is_running) return;