diff options
Diffstat (limited to 'elf/sofini.c')
-rw-r--r-- | elf/sofini.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/elf/sofini.c b/elf/sofini.c new file mode 100644 index 0000000000..e44041b5ec --- /dev/null +++ b/elf/sofini.c @@ -0,0 +1,9 @@ +/* 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 }; |