mailing list of musl libc
 help / color / mirror / code / Atom feed
6e2b67e9710a4f5bf128e6d7594a9bbab51c082d blob 1085 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
39
40
41
42
43
 
#ifndef __RELOC_H__
#define __RELOC_H__

#define _GNU_SOURCE
#include <endian.h>

#ifdef __loongarch64_soft_float
#define FP_SUFFIX "-sf"
#else
#define FP_SUFFIX ""
#endif

#define LDSO_ARCH "loongarch64"  FP_SUFFIX

#define TPOFF_K (0x0)

//#define REL_SYM_OR_REL  4611  
#define REL_PLT         R_LOONGARCH_JUMP_SLOT
#define REL_COPY        R_LOONGARCH_COPY
#define REL_DTPMOD      R_LOONGARCH_TLS_DTPMOD64
#define REL_DTPOFF      R_LOONGARCH_TLS_DTPREL64
#define REL_TPOFF       R_LOONGARCH_TLS_TPREL64
#define REL_RELATIVE    R_LOONGARCH_RELATIVE
#define REL_SYMBOLIC    R_LOONGARCH_64

//#undef R_TYPE
//#undef R_SYM
//#undef R_INFO
//#define R_TYPE(x) (be64toh(x)&0x7fffffff)
//#define R_SYM(x) (be32toh(be64toh(x)>>32))
//#define R_INFO(s,t) (htobe64((uint64_t)htobe32(s)<<32 | (uint64_t)t))

#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" \
	"	or %0, $t1, $zero \n" \
	: "=r"(*(fp)) : : "memory" )

#endif
debug log:

solving 6e2b67e9 ...
found 6e2b67e9 in https://inbox.vuxu.org/musl/631a1416.5853.17a3dd4c129.Coremail.zhaixiaojuan@loongson.cn/ ||
	https://inbox.vuxu.org/musl/43a660d5.58ae.17a3df462b9.Coremail.zhaixiaojuan@loongson.cn/

applying [1/2] https://inbox.vuxu.org/musl/631a1416.5853.17a3dd4c129.Coremail.zhaixiaojuan@loongson.cn/
diff --git a/arch/loongarch64/reloc.h b/arch/loongarch64/reloc.h
new file mode 100644
index 00000000..6e2b67e9

1:23: trailing whitespace.
//#define REL_SYM_OR_REL  4611  
Checking patch arch/loongarch64/reloc.h...
Applied patch arch/loongarch64/reloc.h cleanly.
warning: 1 line adds whitespace errors.

skipping https://inbox.vuxu.org/musl/43a660d5.58ae.17a3df462b9.Coremail.zhaixiaojuan@loongson.cn/ for 6e2b67e9
index at:
100644 6e2b67e9710a4f5bf128e6d7594a9bbab51c082d	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).