1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix missing .ctors/.dtors lead word in soinit

This commit is contained in:
Roland McGrath
2011-06-25 01:23:01 -07:00
parent 034807a9cb
commit 78a7eee7fa
2 changed files with 8 additions and 4 deletions

View File

@ -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> 2011-06-27 Ulrich Drepper <drepper@gmail.com>
[BZ #12350] [BZ #12350]

View File

@ -8,11 +8,11 @@
# include <stdlib.h> # include <stdlib.h>
static void (*const __CTOR_LIST__[1]) (void) static void (*const __CTOR_LIST__[1]) (void)
__attribute__ ((section (".ctors"))) __attribute__ ((used, section (".ctors")))
= { (void (*) (void)) -1 }; = { (void (*) (void)) -1 };
static void (*const __DTOR_LIST__[1]) (void) static void (*const __DTOR_LIST__[1]) (void)
__attribute__ ((section (".dtors"))) __attribute__ ((used, section (".dtors")))
= { (void (*) (void)) -1 }; = { (void (*) (void)) -1 };
static inline void static inline void
run_hooks (void (*const list[]) (void)) run_hooks (void (*const list[]) (void))