mirror of git://git.musl-libc.org/musl
new dlstart stage-2 chaining for or1k
This commit is contained in:
parent
cd7159e7be
commit
4761e63bc4
|
@ -13,3 +13,12 @@
|
||||||
|
|
||||||
#define CRTJMP(pc,sp) __asm__ __volatile__( \
|
#define CRTJMP(pc,sp) __asm__ __volatile__( \
|
||||||
"l.jr %0 ; l.ori r1,%1,0" : : "r"(pc), "r"(sp) : "memory" )
|
"l.jr %0 ; l.ori r1,%1,0" : : "r"(pc), "r"(sp) : "memory" )
|
||||||
|
|
||||||
|
#define GETFUNCSYM(fp, sym, got) __asm__ ( \
|
||||||
|
".hidden " #sym " \n" \
|
||||||
|
" l.jal 1f \n" \
|
||||||
|
" l.nop \n" \
|
||||||
|
" .word " #sym "-. \n" \
|
||||||
|
"1: l.lwz %0, 0(r9) \n" \
|
||||||
|
" l.add %0, %0, r9 \n" \
|
||||||
|
: "=r"(*(fp)) : : "memory", "r9" )
|
||||||
|
|
Loading…
Reference in New Issue