summaryrefslogtreecommitdiff
path: root/libc/elf/sofini.c
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2011-02-04 22:13:20 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2011-02-04 22:13:20 +0000
commitb8df40b734d3df9979fd578556fa1d70f2ada743 (patch)
treeba33735d41593ea1abc8140011952a572c1a6feb /libc/elf/sofini.c
parente1bdacc1e71d0c59aa53f7ea1de37c3f8912d3b8 (diff)
downloadeglibc2-b8df40b734d3df9979fd578556fa1d70f2ada743.tar.gz
Merge changes between r12321 and r12643 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@12751 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/elf/sofini.c')
-rw-r--r--libc/elf/sofini.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/elf/sofini.c b/libc/elf/sofini.c
index 5e06f0ca9..13e74b790 100644
--- a/libc/elf/sofini.c
+++ b/libc/elf/sofini.c
@@ -1,12 +1,14 @@
/* Finalizer module for ELF shared C library. This provides terminating
null pointer words in the `.ctors' and `.dtors' sections. */
+#ifndef NO_CTORS_DTORS_SECTIONS
static void (*const __CTOR_END__[1]) (void)
__attribute__ ((used, section (".ctors")))
= { 0 };
static void (*const __DTOR_END__[1]) (void)
__attribute__ ((used, section (".dtors")))
= { 0 };
+#endif
/* Terminate the frame unwind info section with a 4byte 0 as a sentinel;
this would be the 'length' field in a real FDE. */