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 | |
parent | 034807a9cbddfa9e7d35df4cdb2ecce569a00851 (diff) | |
download | glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.gz glibc-78a7eee7fab0802addf500c481335ed6e9899bda.tar.xz glibc-78a7eee7fab0802addf500c481335ed6e9899bda.zip |
Fix missing .ctors/.dtors lead word in soinit
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | elf/soinit.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index b545852768..94dac81fab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-06-27 Roland McGrath <roland@hack.frob.com> + + * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute. + 2011-06-27 Ulrich Drepper <drepper@gmail.com> [BZ #12350] 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)) |