diff --git a/Makefile b/Makefile index 940fef5..96c4925 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ clean: rm -rf $(BUILD_DIR) debug: + rm -rf $(BUILD_DIR) $(MAKE) DEBUG=1 rebuild: clean all \ No newline at end of file diff --git a/build/config.o b/build/config.o index d6eed6a..7a48f7c 100644 Binary files a/build/config.o and b/build/config.o differ diff --git a/build/debug.o b/build/debug.o index 7699e81..a06f72c 100644 Binary files a/build/debug.o and b/build/debug.o differ diff --git a/build/execve_interceptor.o b/build/execve_interceptor.o index a96107f..ab0589e 100644 Binary files a/build/execve_interceptor.o and b/build/execve_interceptor.o differ diff --git a/build/init_cleanup.o b/build/init_cleanup.o index 7ec0007..89b3497 100644 Binary files a/build/init_cleanup.o and b/build/init_cleanup.o differ diff --git a/build/intercept.so b/build/intercept.so index 723b94c..3db67ae 100755 Binary files a/build/intercept.so and b/build/intercept.so differ diff --git a/build/logging.o b/build/logging.o index 71d4ce6..0f97608 100644 Binary files a/build/logging.o and b/build/logging.o differ diff --git a/build/rules.o b/build/rules.o index c011107..d51bb20 100644 Binary files a/build/rules.o and b/build/rules.o differ diff --git a/build/utils.o b/build/utils.o index 9da22ca..76a7720 100644 Binary files a/build/utils.o and b/build/utils.o differ diff --git a/src/init_cleanup.c b/src/init_cleanup.c index 5958a7b..7714a9c 100644 --- a/src/init_cleanup.c +++ b/src/init_cleanup.c @@ -19,7 +19,7 @@ extern int shm_id; // } // Destructor, executed when the library is unloaded -__attribute__((destructor)) static void cleanup_shared_memory() { +__attribute__((destructor)) void cleanup_shared_memory() { DEBUG_LOG("execve_intercept library unloaded."); // Log output paths DEBUG_LOG("Log file: %s", LOG_FILE); diff --git a/src/init_cleanup.h b/src/init_cleanup.h index aa07e6a..0dd066c 100644 --- a/src/init_cleanup.h +++ b/src/init_cleanup.h @@ -2,6 +2,6 @@ #define INIT_CLEANUP_H // void initialize(); -__attribute__((destructor)) static void cleanup_shared_memory(); +__attribute__((destructor)) void cleanup_shared_memory(); #endif // INIT_CLEANUP_H \ No newline at end of file