libbsd: add support for aarch64
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43354 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cb5d054e77
commit
6c773b03bd
1 changed files with 19 additions and 0 deletions
19
package/libs/libbsd/patches/001-aarch64_support.patch
Normal file
19
package/libs/libbsd/patches/001-aarch64_support.patch
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue