mailing list of musl libc
 help / color / mirror / code / Atom feed
a4db6a9c542cabb9672b81ea7bf8e80bbaa76a94 blob 828 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
 
#ifdef __loongarch_soft_float
#define FP_SUFFIX "-sf"
#elif defined __loongarch_single_float
#define FP_SUFFIX "-sp"
#else
#define FP_SUFFIX ""
#endif

#define LDSO_ARCH "loongarch64" FP_SUFFIX

#define TPOFF_K         0

#define REL_PLT         R_LARCH_JUMP_SLOT
#define REL_COPY        R_LARCH_COPY
#define REL_DTPMOD      R_LARCH_TLS_DTPMOD64
#define REL_DTPOFF      R_LARCH_TLS_DTPREL64
#define REL_TPOFF       R_LARCH_TLS_TPREL64
#define REL_RELATIVE    R_LARCH_RELATIVE
#define REL_SYMBOLIC    R_LARCH_64
#define REL_TLSDESC     R_LARCH_TLS_DESC64

#define CRTJMP(pc,sp) __asm__ __volatile__( \
	"move $sp, %1 ; jr %0" : : "r"(pc), "r"(sp) : "memory" )

#define GETFUNCSYM(fp, sym, got) __asm__ ( \
	".hidden " #sym "\n" \
	".align 8 \n" \
	"	la.local $t1, "#sym" \n" \
	"	move %0, $t1 \n" \
	: "=r"(*(fp)) : : "memory" )
debug log:

solving a4db6a9c ...
found a4db6a9c in https://inbox.vuxu.org/musl/6033018e-ebbb-a91f-fc54-8c655f127e02@loongson.cn/ ||
	https://inbox.vuxu.org/musl/20240910011533.1419388-1-lixing@loongson.cn/
found 61eaca9e in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 61eaca9e3559abdb1d29dbc953b22b851ef0385f	arch/loongarch64/reloc.h

applying [1/2] https://inbox.vuxu.org/musl/6033018e-ebbb-a91f-fc54-8c655f127e02@loongson.cn/
diff --git a/arch/loongarch64/reloc.h b/arch/loongarch64/reloc.h
index 61eaca9e..a4db6a9c 100644

Checking patch arch/loongarch64/reloc.h...
error: while searching for:
 #define REL_TPOFF       R_LARCH_TLS_TPREL64
 #define REL_RELATIVE    R_LARCH_RELATIVE
 #define REL_SYMBOLIC    R_LARCH_64

 #define CRTJMP(pc,sp) __asm__ __volatile__( \
     "move $sp, %1 ; jr %0" : : "r"(pc), "r"(sp) : "memory" )

error: patch failed: arch/loongarch64/reloc.h:17
error: arch/loongarch64/reloc.h: patch does not apply

git apply error: exit status=1
trying https://inbox.vuxu.org/musl/20240910011533.1419388-1-lixing@loongson.cn/

applying [2/2] https://inbox.vuxu.org/musl/20240910011533.1419388-1-lixing@loongson.cn/
diff --git a/arch/loongarch64/reloc.h b/arch/loongarch64/reloc.h
index 61eaca9e..a4db6a9c 100644

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

index at:
100644 a4db6a9c542cabb9672b81ea7bf8e80bbaa76a94	arch/loongarch64/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).