summaryrefslogtreecommitdiff
path: root/elf/soinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/soinit.c')
-rw-r--r--elf/soinit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/soinit.c b/elf/soinit.c
index 76033ea90c..71398308d2 100644
--- a/elf/soinit.c
+++ b/elf/soinit.c
@@ -8,11 +8,11 @@
# include <stdlib.h>
static void (*const __CTOR_LIST__[1]) (void)
- __attribute__ ((section (".ctors")))
- = { (void (*) (void)) -1 };
+ __attribute__ ((used, section (".ctors")))
+ = { (void (*) (void)) -1 };
static void (*const __DTOR_LIST__[1]) (void)
- __attribute__ ((section (".dtors")))
- = { (void (*) (void)) -1 };
+ __attribute__ ((used, section (".dtors")))
+ = { (void (*) (void)) -1 };
static inline void
run_hooks (void (*const list[]) (void))