1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
	will not optimize it away.
	(__DTOR_END__): Likewise.
	(__CTOR_END__): Likewise.
This commit is contained in:
Andreas Jaeger
2003-07-22 19:37:41 +00:00
parent 9fb978c8ae
commit 422514503d
2 changed files with 8 additions and 3 deletions

View File

@ -2,10 +2,10 @@
null pointer words in the `.ctors' and `.dtors' sections. */
static void (*const __CTOR_END__[1]) (void)
__attribute__ ((unused, section (".ctors")))
__attribute__ ((used, section (".ctors")))
= { 0 };
static void (*const __DTOR_END__[1]) (void)
__attribute__ ((unused, section (".dtors")))
__attribute__ ((used, section (".dtors")))
= { 0 };
#ifdef HAVE_DWARF2_UNWIND_INFO
@ -14,6 +14,6 @@ static void (*const __DTOR_END__[1]) (void)
typedef unsigned int ui32 __attribute__ ((mode (SI)));
static ui32 __FRAME_END__[1]
__attribute__ ((unused, section (".eh_frame")))
__attribute__ ((used, section (".eh_frame")))
= { 0 };
#endif