]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/arch/aarch64/reloc.h
Update to musl 1.2.0.
[wasi-libc.git] / libc-top-half / musl / arch / aarch64 / reloc.h
1 #if __BYTE_ORDER == __BIG_ENDIAN
2 #define ENDIAN_SUFFIX "_be"
3 #else
4 #define ENDIAN_SUFFIX ""
5 #endif
6
7 #define LDSO_ARCH "aarch64" ENDIAN_SUFFIX
8
9 #define NO_LEGACY_INITFINI
10
11 #define TPOFF_K 0
12
13 #define REL_SYMBOLIC R_AARCH64_ABS64
14 #define REL_GOT R_AARCH64_GLOB_DAT
15 #define REL_PLT R_AARCH64_JUMP_SLOT
16 #define REL_RELATIVE R_AARCH64_RELATIVE
17 #define REL_COPY R_AARCH64_COPY
18 #define REL_DTPMOD R_AARCH64_TLS_DTPMOD64
19 #define REL_DTPOFF R_AARCH64_TLS_DTPREL64
20 #define REL_TPOFF R_AARCH64_TLS_TPREL64
21 #define REL_TLSDESC R_AARCH64_TLSDESC
22
23 #define CRTJMP(pc,sp) __asm__ __volatile__( \
24 "mov sp,%1 ; br %0" : : "r"(pc), "r"(sp) : "memory" )