* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-elfvers / vers21.c
blob3a75b48add1707214f785ca179dcdcda389420b9
1 #include "vers.h"
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));
8 int
9 bar ()
11 return 1;
14 int
15 _old_bar ()
17 return bar ();
20 int
21 foo ()
23 return 2;
26 int
27 _old_foo ()
29 return foo ();
32 int _old_foobar = -1;
34 int foobar = 1;