zig/lib/libc/musl/arch/hexagon/reloc.h
Alex Rønne Petersen 3df67dc414
musl: Add hexagon-linux-musl sources.
This is from Qualcomm's fork: https://github.com/quic/musl

I maintain a fork of musl where I rebase Qualcomm's changes on top of the latest
musl release, which I then use as the basis for musl updates in Zig. My fork can
be found here: https://github.com/alexrp/musl/tree/hexagon
2025-04-11 02:28:35 +02:00

16 lines
476 B
C
Vendored

#include <endian.h>
#define LDSO_ARCH "hexagon"
#define TPOFF_K 0
#define REL_SYMBOLIC R_HEX_32
#define REL_GOT R_HEX_GLOB_DAT
#define REL_PLT R_HEX_JMP_SLOT
#define REL_RELATIVE R_HEX_RELATIVE
#define REL_COPY R_HEX_COPY
#define REL_DTPMOD R_HEX_DTPMOD_32
#define REL_TPOFF R_HEX_TPREL_32
#define REL_DTPOFF R_HEX_DTPREL_32
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"r29 = %1 ; jumpr %0" : : "r"(pc), "r"(sp) : "memory" )