* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-elfvers / vers18.c
blob9965b88a02954172373ff151044ec17b26712de9
1 #include "vers.h"
3 int
4 bar ()
6 return 3;
9 #pragma weak hide_original_foo
11 int
12 hide_original_foo ()
14 return 1 + bar ();
17 #pragma weak hide_old_foo
19 int
20 hide_old_foo ()
22 return 10 + bar();
25 #pragma weak hide_old_foo1
27 int
28 hide_old_foo1 ()
30 return 100 + bar ();
33 #pragma weak hide_new_foo
35 int
36 hide_new_foo ()
38 return 1000 + bar ();
41 SYMVER(hide_original_foo, show_foo@);
42 SYMVER(hide_old_foo, show_foo@VERS_1.1);
43 SYMVER(hide_old_foo1, show_foo@VERS_1.2);
44 SYMVER(hide_new_foo, show_foo@@VERS_2.0);