musl/arch/s390x/reloc.h
Rich Felker 4d3a162d00 remove use of endian.h from arch reloc.h headers, clean up
building on commit 97d35a552e,
__BYTE_ORDER is now available wherever alltypes.h is included. since
reloc.h is only used from src/internal/dynlink.h, it can be assumed
that __BYTE_ORDER is exposed. reloc.h is not permitted to be included
in other contexts, and generally, like most arch headers, lacks
inclusion guards that would allow such usage. the mips64 version
mistakenly included such guards; they are removed for consistency.
2019-10-17 16:06:12 -04:00

14 lines
438 B
C

#define LDSO_ARCH "s390x"
#define REL_SYMBOLIC R_390_64
#define REL_GOT R_390_GLOB_DAT
#define REL_PLT R_390_JMP_SLOT
#define REL_RELATIVE R_390_RELATIVE
#define REL_COPY R_390_COPY
#define REL_DTPMOD R_390_TLS_DTPMOD
#define REL_DTPOFF R_390_TLS_DTPOFF
#define REL_TPOFF R_390_TLS_TPOFF
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"lgr %%r15,%1; br %0" : : "r"(pc), "r"(sp) : "memory" )