diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-12-24 20:14:37 -0500 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-28 09:58:32 -0800 |
commit | 91a47ba45fc70b7fce405f05b0543296a4509aa1 (patch) | |
tree | 2b0509bc5a2f0a562187d43f1f08dae5a5b9480c /elf/sofini.c | |
parent | df79688ef6f6c746ecb4cc2e212780832e2f9c87 (diff) | |
download | glibc-hjl/ctor/release/2.11.tar.gz glibc-hjl/ctor/release/2.11.tar.xz glibc-hjl/ctor/release/2.11.zip |
Remove `.ctors' and `.dtors' output sections hjl/ctor/release/2.11
Conflicts: ChangeLog configure
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 5e06f0ca92..13e74b7903 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. */ |