reloc.h 758 B

1234567891011121314151617181920212223242526272829303132
  1. #if __BYTE_ORDER == __BIG_ENDIAN
  2. #define ENDIAN_SUFFIX "eb"
  3. #else
  4. #define ENDIAN_SUFFIX ""
  5. #endif
  6. #if __ARM_PCS_VFP
  7. #define FP_SUFFIX "hf"
  8. #else
  9. #define FP_SUFFIX ""
  10. #endif
  11. #define LDSO_ARCH "arm" ENDIAN_SUFFIX FP_SUFFIX
  12. #define NO_LEGACY_INITFINI
  13. #define TPOFF_K 0
  14. #define REL_SYMBOLIC R_ARM_ABS32
  15. #define REL_GOT R_ARM_GLOB_DAT
  16. #define REL_PLT R_ARM_JUMP_SLOT
  17. #define REL_RELATIVE R_ARM_RELATIVE
  18. #define REL_COPY R_ARM_COPY
  19. #define REL_DTPMOD R_ARM_TLS_DTPMOD32
  20. #define REL_DTPOFF R_ARM_TLS_DTPOFF32
  21. #define REL_TPOFF R_ARM_TLS_TPOFF32
  22. #define REL_TLSDESC R_ARM_TLS_DESC
  23. #define TLSDESC_BACKWARDS 1
  24. #define CRTJMP(pc,sp) __asm__ __volatile__( \
  25. "mov sp,%1 ; bx %0" : : "r"(pc), "r"(sp) : "memory" )