diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-06-25 01:23:01 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-06-27 20:26:54 -0700 |
commit | 78a7eee7fab0802addf500c481335ed6e9899bda (patch) | |
tree | d87b77746112ca39add53ccc1d067d9b0ea2d12e /elf | |
parent | 034807a9cbddfa9e7d35df4cdb2ecce569a00851 (diff) | |
download | glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.gz glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.xz glibc-78a7eee7fab0802addf500c481335ed6e9899bda.zip |
Fix missing .ctors/.dtors lead word in soinit
Diffstat (limited to 'elf')
-rw-r--r-- | elf/soinit.c | 8 |
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)) |