repo.or.cz
/
rofl0r-symbol-versioning-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix 404s
[rofl0r-symbol-versioning-test.git]
/
dso.c
blob
20e7ef361259a28f7ad9dbbf9b3d3b0a657153e3
1
#include <stdio.h>
2
3
__asm__
(
".symver func_old, func@OLD"
);
4
__asm__
(
".symver func_new, func@@NEW"
);
// @@ means "default symbol"
5
6
void
func_old
() {
7
printf
(
"old
\n
"
);
8
}
9
10
void
func_new
() {
11
printf
(
"new
\n
"
);
12
}