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:
2907afb
)
new dlstart stage-2 chaining for microblaze
author
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Sep 2015 07:20:36 +0000
(07:20 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Sep 2015 07:20:36 +0000
(07:20 +0000)
arch/microblaze/reloc.h
patch
|
blob
|
history
diff --git
a/arch/microblaze/reloc.h
b/arch/microblaze/reloc.h
index 611db4654245c63c15a4cb17c04981aebc77bb3b..0a030c7eb2d32f6c7eb2d26de733c1c885580fe1 100644
(file)
--- a/
arch/microblaze/reloc.h
+++ b/
arch/microblaze/reloc.h
@@
-20,3
+20,10
@@
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
+
+#define GETFUNCSYM(fp, sym, got) __asm__ ( \
+ ".hidden " #sym " \n" \
+ " mfs %0, rpc \n" \
+ " addik %0, %0, _GLOBAL_OFFSET_TABLE_+8 \n" \
+ " addik %0, %0, " #sym "@GOTOFF \n" \
+ : "=r"(*(fp)) : : "memory" )