reloc.h 683 B

123456789101112131415161718192021222324
  1. #if __BYTE_ORDER == __BIG_ENDIAN
  2. #define ENDIAN_SUFFIX "_be"
  3. #else
  4. #define ENDIAN_SUFFIX ""
  5. #endif
  6. #define LDSO_ARCH "aarch64" ENDIAN_SUFFIX
  7. #define NO_LEGACY_INITFINI
  8. #define TPOFF_K 0
  9. #define REL_SYMBOLIC R_AARCH64_ABS64
  10. #define REL_GOT R_AARCH64_GLOB_DAT
  11. #define REL_PLT R_AARCH64_JUMP_SLOT
  12. #define REL_RELATIVE R_AARCH64_RELATIVE
  13. #define REL_COPY R_AARCH64_COPY
  14. #define REL_DTPMOD R_AARCH64_TLS_DTPMOD64
  15. #define REL_DTPOFF R_AARCH64_TLS_DTPREL64
  16. #define REL_TPOFF R_AARCH64_TLS_TPREL64
  17. #define REL_TLSDESC R_AARCH64_TLSDESC
  18. #define CRTJMP(pc,sp) __asm__ __volatile__( \
  19. "mov sp,%1 ; br %0" : : "r"(pc), "r"(sp) : "memory" )