• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #if __BYTE_ORDER == __LITTLE_ENDIAN
2 #define ENDIAN_SUFFIX "el"
3 #else
4 #define ENDIAN_SUFFIX ""
5 #endif
6 
7 #define LDSO_ARCH "microblaze" ENDIAN_SUFFIX
8 
9 #define TPOFF_K 0
10 
11 #define REL_SYMBOLIC    R_MICROBLAZE_32
12 #define REL_GOT         R_MICROBLAZE_GLOB_DAT
13 #define REL_PLT         R_MICROBLAZE_JUMP_SLOT
14 #define REL_RELATIVE    R_MICROBLAZE_REL
15 #define REL_COPY        R_MICROBLAZE_COPY
16 #define REL_DTPMOD      R_MICROBLAZE_TLSDTPMOD32
17 #define REL_DTPOFF      R_MICROBLAZE_TLSDTPREL32
18 
19 #define CRTJMP(pc,sp) __asm__ __volatile__( \
20 	"addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
21 
22 #define GETFUNCSYM(fp, sym, got) __asm__ ( \
23 	".hidden " #sym " \n" \
24 	"	mfs %0, rpc \n" \
25 	"	addik %0, %0, _GLOBAL_OFFSET_TABLE_+8 \n" \
26 	"	addik %0, %0, " #sym "@GOTOFF \n" \
27 	: "=r"(*(fp)) : : "memory" )
28