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
Move uinteger_pow gdb/valarith.c to gdb/utils.c and make it public
[binutils-gdb.git]
/
gold
/
testsuite
/
weak_as_needed_b.c
blob
6a1fbf8f854a9ee8bbd566ac15e2df8df8219ea0
1
#include <stdio.h>
2
3
__asm__
(
".symver bar_v1, bar@v1"
);
4
__asm__
(
".symver bar_v2, bar@@v2"
);
5
6
void
bar_v1
(
void
);
7
void
bar_v2
(
void
);
8
void
baz
(
void
);
9
10
void
bar_v1
(
void
)
11
{
12
printf
(
"weak_as_needed_b: bar_v1
\n
"
);
13
}
14
15
void
bar_v2
(
void
)
16
{
17
printf
(
"weak_as_needed_b: bar_v2
\n
"
);
18
}
19
20
void
baz
(
void
)
21
{
22
printf
(
"weak_as_needed_b: baz
\n
"
);
23
}