projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move msghdr and cmsghdr out of bits/socket.h
[musl]
/
arch
/
x86_64
/
reloc.h
diff --git
a/arch/x86_64/reloc.h
b/arch/x86_64/reloc.h
index
84c075c
..
fac0c0a
100644
(file)
--- a/
arch/x86_64/reloc.h
+++ b/
arch/x86_64/reloc.h
@@
-13,3
+13,8
@@
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"mov %1,%%rsp ; jmp *%0" : : "r"(pc), "r"(sp) : "memory" )
+
+#define GETFUNCSYM(fp, sym, got) __asm__ ( \
+ ".hidden " #sym "\n" \
+ " lea " #sym "(%%rip),%0\n" \
+ : "=r"(*fp) : : "memory" )