mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Fix ordering of DSO constructors and destructors.
This commit is contained in:
16
elf/tst-order-a1.c
Normal file
16
elf/tst-order-a1.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
extern void start_a1( void ) __attribute__((constructor));
|
||||
extern void finish_a1( void ) __attribute__((destructor));
|
||||
|
||||
void
|
||||
start_a1( void )
|
||||
{
|
||||
printf( "start_a1\n" );
|
||||
}
|
||||
|
||||
void
|
||||
finish_a1( void )
|
||||
{
|
||||
printf( "finish_a1\n" );
|
||||
}
|
||||
Reference in New Issue
Block a user