Skip to content

Commit

Permalink
Fix missing .ctors/.dtors lead word in soinit
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Jun 28, 2011
1 parent 034807a commit 78a7eee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
8 changes: 4 additions & 4 deletions elf/soinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 78a7eee

Please sign in to comment.