1 #include <stdio.h> 2 3 extern void start_b1( void ) __attribute__((constructor)); 4 extern void finish_b1( void ) __attribute__((destructor)); 5 6 void start_b1(void)7start_b1( void ) 8 { 9 printf( "start_b1\n" ); 10 } 11 12 void finish_b1(void)13finish_b1( void ) 14 { 15 printf( "finish_b1\n" ); 16 } 17