2013-07-18 23:29:44 +00:00
|
|
|
#include <endian.h>
|
2012-09-29 05:05:31 +00:00
|
|
|
|
2013-07-18 23:29:44 +00:00
|
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
|
|
#define ENDIAN_SUFFIX "el"
|
|
|
|
#else
|
|
|
|
#define ENDIAN_SUFFIX ""
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define LDSO_ARCH "microblaze" ENDIAN_SUFFIX
|
2012-09-29 05:05:31 +00:00
|
|
|
|
2014-06-18 06:44:02 +00:00
|
|
|
#define TPOFF_K 0
|
2012-09-29 05:05:31 +00:00
|
|
|
|
2015-04-13 06:56:26 +00:00
|
|
|
#define REL_SYMBOLIC R_MICROBLAZE_32
|
|
|
|
#define REL_GOT R_MICROBLAZE_GLOB_DAT
|
|
|
|
#define REL_PLT R_MICROBLAZE_JUMP_SLOT
|
|
|
|
#define REL_RELATIVE R_MICROBLAZE_REL
|
|
|
|
#define REL_COPY R_MICROBLAZE_COPY
|
|
|
|
#define REL_DTPMOD R_MICROBLAZE_TLSDTPMOD32
|
|
|
|
#define REL_DTPOFF R_MICROBLAZE_TLSDTPREL32
|
2012-09-29 05:05:31 +00:00
|
|
|
|
2015-04-13 06:56:26 +00:00
|
|
|
#define CRTJMP(pc,sp) __asm__ __volatile__( \
|
|
|
|
"addik r1,%1,0 ; bra %0" : : "r"(pc), "r"(sp) : "memory" )
|