about summary refs log tree commit diff
path: root/elf/sofini.c
blob: 6da0062d0609fc1d0d8c246d693b36e27c11ee5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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__ ((unused, section (".ctors")))
     = { 0 };
static void (*const __DTOR_END__[1]) (void)
     __attribute__ ((unused, 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 const ui32 __FRAME_END__[1]
     __attribute__ ((unused, section (".eh_frame")))
     = { 0 };
#endif