1570af302Sopenharmony_ci#if __BYTE_ORDER == __BIG_ENDIAN
2570af302Sopenharmony_ci#define ENDIAN_SUFFIX "_be"
3570af302Sopenharmony_ci#else
4570af302Sopenharmony_ci#define ENDIAN_SUFFIX ""
5570af302Sopenharmony_ci#endif
6570af302Sopenharmony_ci
7570af302Sopenharmony_ci#define LDSO_ARCH "aarch64" ENDIAN_SUFFIX
8570af302Sopenharmony_ci
9570af302Sopenharmony_ci#define NO_LEGACY_INITFINI
10570af302Sopenharmony_ci
11570af302Sopenharmony_ci#define TPOFF_K 0
12570af302Sopenharmony_ci
13570af302Sopenharmony_ci#define REL_SYMBOLIC    R_AARCH64_ABS64
14570af302Sopenharmony_ci#define REL_GOT         R_AARCH64_GLOB_DAT
15570af302Sopenharmony_ci#define REL_PLT         R_AARCH64_JUMP_SLOT
16570af302Sopenharmony_ci#define REL_RELATIVE    R_AARCH64_RELATIVE
17570af302Sopenharmony_ci#define REL_COPY        R_AARCH64_COPY
18570af302Sopenharmony_ci#define REL_DTPMOD      R_AARCH64_TLS_DTPMOD64
19570af302Sopenharmony_ci#define REL_DTPOFF      R_AARCH64_TLS_DTPREL64
20570af302Sopenharmony_ci#define REL_TPOFF       R_AARCH64_TLS_TPREL64
21570af302Sopenharmony_ci#define REL_TLSDESC     R_AARCH64_TLSDESC
22570af302Sopenharmony_ci
23570af302Sopenharmony_ci#define CRTJMP(pc,sp) __asm__ __volatile__( \
24570af302Sopenharmony_ci	"mov sp,%1 ; br %0" : : "r"(pc), "r"(sp) : "memory" )
25