mailing list of musl libc
 help / color / mirror / code / Atom feed
5bba91a39d30502fb729e2d2e97dfe164cd1a5f2 blob 736 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
 
#include <string.h>
#include <elf.h>
#include <endian.h>

#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "eb"
#else
#define ENDIAN_SUFFIX ""
#endif

#define LDSO_ARCH "aarch64" ENDIAN_SUFFIX

#define NO_LEGACY_INITFINI

#define TPOFF_K 16

static int remap_rel(int type)
{
	switch(type) {
	case R_AARCH64_ABS64:
		return REL_SYMBOLIC;
	case R_AARCH64_GLOB_DAT:
		return REL_GOT;
	case R_AARCH64_JUMP_SLOT:
		return REL_PLT;
	case R_AARCH64_RELATIVE:
		return REL_RELATIVE;
	case R_AARCH64_COPY:
		return REL_COPY;
	case R_AARCH64_TLS_DTPMOD64:
		return REL_DTPMOD;
	case R_AARCH64_TLS_DTPREL64:
		return REL_DTPOFF;
	case R_AARCH64_TLS_TPREL64:
		return REL_TPOFF;
	case R_AARCH64_TLSDESC:
		return REL_TLSDESC;
	}
	return 0;
}
debug log:

solving 5bba91a ...
found 5bba91a in https://inbox.vuxu.org/musl/20150309185058.GL16260@port70.net/

applying [1/1] https://inbox.vuxu.org/musl/20150309185058.GL16260@port70.net/
diff --git a/arch/aarch64/reloc.h b/arch/aarch64/reloc.h
new file mode 100644
index 0000000..5bba91a

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

index at:
100644 5bba91a39d30502fb729e2d2e97dfe164cd1a5f2	arch/aarch64/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).