mailing list of musl libc
 help / color / mirror / code / Atom feed
249cb40c67877d4976986b46094ebfa8622e4e2f blob 815 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
 
#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_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 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 249cb40c ...
found 249cb40c in https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/ ||
	https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/

applying [1/2] https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/
diff --git a/arch/loongarch64/reloc.h b/arch/loongarch64/reloc.h
new file mode 100644
index 00000000..249cb40c

warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
Checking patch arch/loongarch64/reloc.h...
Applied patch arch/loongarch64/reloc.h cleanly.

skipping https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/ for 249cb40c
index at:
100644 249cb40c67877d4976986b46094ebfa8622e4e2f	arch/loongarch64/reloc.h

Code repositories for project(s) associated with this 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).