Further harden glibc malloc metadata against 1-byte overflows.
[glibc.git] / elf / sofini.c
blob13e74b7903bf5ba6e13ef862c3906c1eab53f4dd
1 /* Finalizer module for ELF shared C library. This provides terminating
2 null pointer words in the `.ctors' and `.dtors' sections. */
4 #ifndef NO_CTORS_DTORS_SECTIONS
5 static void (*const __CTOR_END__[1]) (void)
6 __attribute__ ((used, section (".ctors")))
7 = { 0 };
8 static void (*const __DTOR_END__[1]) (void)
9 __attribute__ ((used, section (".dtors")))
10 = { 0 };
11 #endif
13 /* Terminate the frame unwind info section with a 4byte 0 as a sentinel;
14 this would be the 'length' field in a real FDE. */
16 typedef unsigned int ui32 __attribute__ ((mode (SI)));
17 static const ui32 __FRAME_END__[1]
18 __attribute__ ((used, section (".eh_frame")))
19 = { 0 };