summaryrefslogtreecommitdiff
path: root/lib/xray/xray_init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xray/xray_init.cc')
-rw-r--r--lib/xray/xray_init.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/xray/xray_init.cc b/lib/xray/xray_init.cc
index 864e77944..07f692431 100644
--- a/lib/xray/xray_init.cc
+++ b/lib/xray/xray_init.cc
@@ -88,8 +88,7 @@ void __xray_init() XRAY_NEVER_INSTRUMENT {
#endif
}
-// Only add the preinit array initialization if the sanitizers can.
-#if !defined(XRAY_NO_PREINIT) && SANITIZER_CAN_USE_PREINIT_ARRAY
+#ifndef XRAY_NO_PREINIT
__attribute__((section(".preinit_array"),
used)) void (*__local_xray_preinit)(void) = __xray_init;
#endif