projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4761e63
)
new dlstart stage-2 chaining for powerpc
author
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Sep 2015 07:20:58 +0000
(07:20 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Sep 2015 07:20:58 +0000
(07:20 +0000)
arch/powerpc/reloc.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/reloc.h
b/arch/powerpc/reloc.h
index aa5f8c936e79884769d987688d5a3a503c0941f9..b8b6589f988e42519e7e05c3195ad054f0817dc7 100644
(file)
--- a/
arch/powerpc/reloc.h
+++ b/
arch/powerpc/reloc.h
@@
-13,3
+13,12
@@
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"mr 1,%1 ; mtlr %0 ; blr" : : "r"(pc), "r"(sp) : "memory" )
+
+#define GETFUNCSYM(fp, sym, got) __asm__ ( \
+ ".hidden " #sym " \n" \
+ " bl 1f \n" \
+ " .long " #sym "-. \n" \
+ "1: mflr %1 \n" \
+ " lwz %0, 0(%1) \n" \
+ " add %0, %0, %1 \n" \
+ : "=r"(*(fp)), "=r"((int){0}) : : "memory", "lr" )