2
0

reloc.h 688 B

123456789101112131415161718192021222324
  1. #define LDSO_ARCH "or1k"
  2. #define TPOFF_K 0
  3. #define REL_SYMBOLIC R_OR1K_32
  4. #define REL_GOT R_OR1K_GLOB_DAT
  5. #define REL_PLT R_OR1K_JMP_SLOT
  6. #define REL_RELATIVE R_OR1K_RELATIVE
  7. #define REL_COPY R_OR1K_COPY
  8. #define REL_DTPMOD R_OR1K_TLS_DTPMOD
  9. #define REL_DTPOFF R_OR1K_TLS_DTPOFF
  10. #define REL_TPOFF R_OR1K_TLS_TPOFF
  11. #define CRTJMP(pc,sp) __asm__ __volatile__( \
  12. "l.jr %0 ; l.ori r1,%1,0" : : "r"(pc), "r"(sp) : "memory" )
  13. #define GETFUNCSYM(fp, sym, got) __asm__ ( \
  14. ".hidden " #sym " \n" \
  15. " l.jal 1f \n" \
  16. " l.nop \n" \
  17. " .word " #sym "-. \n" \
  18. "1: l.lwz %0, 0(r9) \n" \
  19. " l.add %0, %0, r9 \n" \
  20. : "=r"(*(fp)) : : "memory", "r9" )