]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/c++/OSRuntime.cpp
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / c++ / OSRuntime.cpp
index 40bd13b6fea0bbd3e13c773b82e3a92ee7c90fe6..de210c18afd7cb46b9de20c31c06bed2986544d1 100644 (file)
@@ -330,7 +330,14 @@ finish:
 }
 
 #if defined(HAS_APPLE_PAC)
-static inline void
+#if !KASAN
+/*
+ * Place this function in __KLD,__text on non-kasan builds so it gets unmapped
+ * after CTRR lockdown.
+ */
+__attribute__((noinline, section("__KLD,__text")))
+#endif
+static void
 OSRuntimeSignStructorsInSegment(kernel_segment_command_t *segment)
 {
        kernel_section_t         * section;