1 #include "vers.h" 2 3 SYMVER(_old_foo, foo@VERS.0); 4 SYMVER(_old_bar, bar@VERS.0); 5 SYMVER(_old_foobar, foobar@VERS.0); 6 __asm__(".weak " SYMPFX(_old_bar)); 7 8 int bar()9bar () 10 { 11 return 1; 12 } 13 14 int _old_bar()15_old_bar () 16 { 17 return bar (); 18 } 19 20 int foo()21foo () 22 { 23 return 2; 24 } 25 26 int _old_foo()27_old_foo () 28 { 29 return foo (); 30 } 31 32 int _old_foobar = -1; 33 34 int foobar = 1; 35