1 int foo (void) __attribute__ ((weak)); 2 int foo(void)3 foo (void) 4 { 5 return 2; 6 } 7 8 int mod2_bar(void)9 mod2_bar (void) 10 { 11 return foo (); 12 } 13