diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-24 20:14:37 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-12-24 20:14:37 -0500 |
commit | 4a531bb0b3b582cb693de9f76d2d97d970f9a5d5 (patch) | |
tree | 6f135f0145aab4c664d47d27d9aa08721a849888 /elf/sofini.c | |
parent | 07eb4b716ea5041bceb47b38ac8ab989a10b3afd (diff) | |
download | glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.zip glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.tar.gz glibc-4a531bb0b3b582cb693de9f76d2d97d970f9a5d5.tar.bz2 |
Remove `.ctors' and `.dtors' output sections
Diffstat (limited to 'elf/sofini.c')
-rw-r--r-- | elf/sofini.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/sofini.c b/elf/sofini.c index 5e06f0c..13e74b7 100644 --- a/elf/sofini.c +++ b/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. */ |