1
0

reloc.h 796 B

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