aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libbsd/patches/001-aarch64_support.patch
blob: 62291482c70ea329c37e21b10276ed0c8ce451da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -165,6 +165,16 @@
 #endif
 #define ELF_TARG_DATA	ELFDATA2MSB
 
+#elif defined(__aarch64__)
+
+#define ELF_TARG_MACH	EM_AARCH64
+#define ELF_TARG_CLASS	ELFCLASS64
+#ifdef __AARCH64EB__
+#define ELF_TARG_DATA	ELFDATA2MSB
+#else
+#define ELF_TARG_DATA	ELFDATA2LSB
+#endif
+
 #else
 
 #error Unknown ELF machine type