Permalink
Browse files

Fix missing .ctors/.dtors lead word in soinit

  • Loading branch information...
1 parent 034807a commit 78a7eee7fab0802addf500c481335ed6e9899bda @frobtech frobtech committed Jun 25, 2011
Showing with 8 additions and 4 deletions.
  1. +4 −0 ChangeLog
  2. +4 −4 elf/soinit.c
View
@@ -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]
View
@@ -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))

0 comments on commit 78a7eee

Please sign in to comment.