1extern int foo; 2extern int foo2; 3 4static void 5__attribute__ ((unused, constructor)) 6set_foo (void) 7{ 8 foo = foo2; 9} 10