Fix release build

This commit is contained in:
Nullptr
2023-02-02 22:47:18 +08:00
parent 673eca8025
commit 4ecb4a9276
4 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -15,7 +15,8 @@ static void zygisk_cleanup_wait() {
}
}
extern "C" __used void entry(void *handle) {
extern "C" [[gnu::visibility("default")]]
void entry(void *handle) {
LOGD("Load injector successfully");
self_handle = handle;
hook_functions();
@@ -27,4 +28,3 @@ static inline bool should_load_modules(uint32_t flags) {
return (flags & UNMOUNT_MASK) != UNMOUNT_MASK &&
(flags & PROCESS_IS_MAGISK_APP) != PROCESS_IS_MAGISK_APP;
}