repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git]
/
ld
/
testsuite
/
ld-elfvers
/
vers21.c
blob
3a75b48add1707214f785ca179dcdcda389420b9
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
;