diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-09-17 07:20:36 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-09-17 07:20:36 +0000 |
commit | 57e2dce7e46f8f94318f1d4dec590c9f1c3025dc (patch) | |
tree | e9dc39d8e40cd85682f091b1984593e547eb3497 | |
parent | 2907afb8dbd4c1d34825c3c9bd2b41564baca210 (diff) | |
download | musl-57e2dce7e46f8f94318f1d4dec590c9f1c3025dc.tar.gz musl-57e2dce7e46f8f94318f1d4dec590c9f1c3025dc.tar.bz2 musl-57e2dce7e46f8f94318f1d4dec590c9f1c3025dc.tar.xz musl-57e2dce7e46f8f94318f1d4dec590c9f1c3025dc.zip |
new dlstart stage-2 chaining for microblaze
-rw-r--r-- | arch/microblaze/reloc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/microblaze/reloc.h b/arch/microblaze/reloc.h index 611db465..0a030c7e 100644 --- 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" ) |