aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers21.c
blob: 2879c7f0e3d94c7c06688908c59ededfb4338fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
__asm__(".symver _old_foo,foo@VERS.0");
__asm__(".symver _old_bar,bar@VERS.0");
__asm__(".symver _old_foobar,foobar@VERS.0");
__asm__(".weak  _old_bar");

int
bar () 
{
  return 1;
}

int
_old_bar () 
{
  return bar ();
}

int
foo () 
{
  return 2;
}

int
_old_foo () 
{
  return foo ();
}

int _old_foobar = -1;

int foobar = 1;