summaryrefslogtreecommitdiff
path: root/src/user/include/pland/pcrt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/pland/pcrt.h')
-rw-r--r--src/user/include/pland/pcrt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/include/pland/pcrt.h b/src/user/include/pland/pcrt.h
index 6581cbe..4888494 100644
--- a/src/user/include/pland/pcrt.h
+++ b/src/user/include/pland/pcrt.h
@@ -9,12 +9,12 @@ extern "C" {
#define BEFORE_MAIN(f) \
__attribute__ ((section (".__pcrt_before_main"))) \
- __attribute__ ((unused)) \
+ __attribute__ ((used)) \
void (*const __pcrt_bm_##f)() = &f;
#define BEFORE_QUIT(f) \
__attribute__ ((section (".__pcrt_before_quit"))) \
- __attribute__ ((unused)) \
+ __attribute__ ((used)) \
void (*const __pcrt_bq_##f)() = &f;
void __pcrt_quit() __attribute__ ((noreturn));