Loading...
--- dyld/dyld-941.4/testing/kernel-cache-tests/kernel-vtable-patching/foo.cpp
+++ dyld/dyld-1066.10/testing/kernel-cache-tests/kernel-vtable-patching/foo.cpp
@@ -1,3 +1,18 @@
+
+
+#include "../kmod.h"
+
+__attribute__((visibility(("hidden"))))
+int startKext() {
+ return 0;
+}
+
+__attribute__((visibility(("hidden"))))
+int endKext() {
+ return 0;
+}
+
+KMOD_EXPLICIT_DECL(com.apple.foo, "1.0.0", (void*)startKext, (void*)endKext)
#include "foo.h"