lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /* Finalizer module for ELF shared C library. This provides terminating |
| 2 | null pointer words in the `.ctors' and `.dtors' sections. */ |
| 3 | |
| 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 |
| 12 | |
| 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. */ |
| 15 | |
| 16 | typedef unsigned int ui32 __attribute__ ((mode (SI))); |
| 17 | static const ui32 __FRAME_END__[1] |
| 18 | __attribute__ ((used, section (".eh_frame"))) |
| 19 | = { 0 }; |