diff --git a/Source/hoc-clk/sysmodule/src/file_utils.cpp b/Source/hoc-clk/sysmodule/src/file_utils.cpp index beef5c17..5e6a9d5c 100644 --- a/Source/hoc-clk/sysmodule/src/file_utils.cpp +++ b/Source/hoc-clk/sysmodule/src/file_utils.cpp @@ -82,9 +82,6 @@ namespace fileUtils { FILE* file = fopen(FILE_LOG_FILE_PATH, "a"); if (file) { - struct timespec now; - clock_gettime(CLOCK_REALTIME, &now); - fprintf(file, "[%lu] ", armGetSystemTick()); vfprintf(file, format, args); fprintf(file, "\n"); diff --git a/Source/hoc-clk/sysmodule/src/main.cpp b/Source/hoc-clk/sysmodule/src/main.cpp index dabf2e53..9921764c 100644 --- a/Source/hoc-clk/sysmodule/src/main.cpp +++ b/Source/hoc-clk/sysmodule/src/main.cpp @@ -55,20 +55,20 @@ extern "C" NvServiceType __nx_nv_service_type = NvServiceType_Factory; // Ty to MasaGratoR for this! - //This is done to save some space as they have no practical use in our case - void* __real___cxa_throw(void *thrown_exception, void *pvar, void (*dest)(void *)); - void* __real__Unwind_Resume(); - void* __real___gxx_personality_v0(); + // This is done to save some space as they have no practical use in our case + __attribute__((used)) void* __real___cxa_throw(void *thrown_exception, void *pvar, void (*dest)(void *)); + __attribute__((used)) void* __real__Unwind_Resume(); + __attribute__((used)) void* __real___gxx_personality_v0(); - void __wrap___cxa_throw(void *thrown_exception, void *pvar, void (*dest)(void *)) { + __attribute__((used)) void __wrap___cxa_throw(void *thrown_exception, void *pvar, void (*dest)(void *)) { abort(); } - void __wrap__Unwind_Resume() { + __attribute__((used)) void __wrap__Unwind_Resume() { return; } - void __wrap___gxx_personality_v0() { + __attribute__((used)) void __wrap___gxx_personality_v0() { return; }