aboutsummaryrefslogtreecommitdiff
path: root/elf/soinit.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-06-25 01:23:01 -0700
committerRoland McGrath <roland@hack.frob.com>2011-06-27 20:26:54 -0700
commit78a7eee7fab0802addf500c481335ed6e9899bda (patch)
treed87b77746112ca39add53ccc1d067d9b0ea2d12e /elf/soinit.c
parent034807a9cbddfa9e7d35df4cdb2ecce569a00851 (diff)
downloadglibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar
glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.gz
glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.bz2
glibc-78a7eee7fab0802addf500c481335ed6e9899bda.zip
Fix missing .ctors/.dtors lead word in soinit
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))