mailing list of musl libc
 help / color / mirror / code / Atom feed
03482f18089dff4482141d6c555b1e9786c4e3cd blob 943 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "eb"
#else
#define ENDIAN_SUFFIX ""
#endif

#if __FDPIC__
#define ABI_SUFFIX "-fdpic"
#else
#define ABI_SUFFIX ""
#endif

#define LDSO_ARCH "xtensa" ENDIAN_SUFFIX ABI_SUFFIX

#define TPOFF_K 8

#define REL_PLT         R_XTENSA_JMP_SLOT
#define REL_RELATIVE    R_XTENSA_RELATIVE
#define REL_GOT         R_XTENSA_GLOB_DAT
#define REL_COPY        R_XTENSA_32
#define REL_TLSDESC     R_XTENSA_TLSDESC_FN

#if __FDPIC__
#define REL_FUNCDESC	R_XTENSA_FUNCDESC
#define REL_FUNCDESC_VAL R_XTENSA_FUNCDESC_VALUE

#define DL_FDPIC 1
#define DL_NOMMU_SUPPORT 1

#define CRTJMP(pc,sp) do { \
	register size_t a4 __asm__("a4") = ((size_t *)(sp))[-2]; \
	__asm__ __volatile__( "mov a1, %1 ; jx %0" \
	: : "r"(pc), "r"(sp), "r"(a4) : "memory" ); } while(0)

#define GETFUNCSYM(fp, sym, got) __asm__ ( \
	"movi %0, " #sym "@GOTOFFFUNCDESC ; add %0, %0, %1" \
	: "=&a"(*fp) : "a"(got) : "memory" )
#endif
debug log:

solving 03482f18 ...
found 03482f18 in https://inbox.vuxu.org/musl/20240227232430.GM4163@brightrain.aerifal.cx/

applying [1/1] https://inbox.vuxu.org/musl/20240227232430.GM4163@brightrain.aerifal.cx/
diff --git a/arch/xtensa/reloc.h b/arch/xtensa/reloc.h
new file mode 100644
index 00000000..03482f18

Checking patch arch/xtensa/reloc.h...
Applied patch arch/xtensa/reloc.h cleanly.

index at:
100644 03482f18089dff4482141d6c555b1e9786c4e3cd	arch/xtensa/reloc.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).