mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
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
16 lines
476 B
C
Vendored
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" )
|