mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
422514503d
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc will not optimize it away. (__DTOR_END__): Likewise. (__CTOR_END__): Likewise.
20 lines
668 B
C
20 lines
668 B
C
/* Finalizer module for ELF shared C library. This provides terminating
|
|
null pointer words in the `.ctors' and `.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 };
|
|
|
|
#ifdef HAVE_DWARF2_UNWIND_INFO
|
|
/* Terminate the frame unwind info section with a 4byte 0 as a sentinel;
|
|
this would be the 'length' field in a real FDE. */
|
|
|
|
typedef unsigned int ui32 __attribute__ ((mode (SI)));
|
|
static ui32 __FRAME_END__[1]
|
|
__attribute__ ((used, section (".eh_frame")))
|
|
= { 0 };
|
|
#endif
|