Home | History | Annotate | Download | only in ld-elfvers
      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
      9 bar ()
     10 {
     11   return 1;
     12 }
     13 
     14 int
     15 _old_bar ()
     16 {
     17   return bar ();
     18 }
     19 
     20 int
     21 foo ()
     22 {
     23   return 2;
     24 }
     25 
     26 int
     27 _old_foo ()
     28 {
     29   return foo ();
     30 }
     31 
     32 int _old_foobar = -1;
     33 
     34 int foobar = 1;
     35