repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-elfvers
/
vers21.c
blob
4a994a19fee8cf82e17b8fb6ec2b1e45ada13089
1
#include
"vers.h"
2
3
FUNC_SYMVER
(
_old_foo
,
foo@VERS
.0
);
4
FUNC_SYMVER
(
_old_bar
,
bar@VERS
.0
);
5
SYMVER
(
_old_foobar
,
foobar@VERS
.0
);
6
7
int
8
bar
()
9
{
10
return
1
;
11
}
12
13
int
__attribute__
((
weak
))
14
_old_bar
()
15
{
16
return
bar
();
17
}
18
19
int
20
foo
()
21
{
22
return
2
;
23
}
24
25
int
26
_old_foo
()
27
{
28
return
foo
();
29
}
30
31
int
_old_foobar
= -
1
;
32
33
int
foobar
=
1
;