summaryrefslogtreecommitdiff
path: root/package/libs/libbsd/patches
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-11-24 06:33:34 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-11-24 06:33:34 +0000
commitacf46919048fba514abf4d263e59e70eaddeb3ae (patch)
treed2c9bbc54c1cf8fb47f489b616f872ea4766fece /package/libs/libbsd/patches
parentdd8d7188eea747c9fc7f11f48cd127ea8e7f273e (diff)
downloadmtk-20170518-acf46919048fba514abf4d263e59e70eaddeb3ae.zip
mtk-20170518-acf46919048fba514abf4d263e59e70eaddeb3ae.tar.gz
mtk-20170518-acf46919048fba514abf4d263e59e70eaddeb3ae.tar.bz2
libbsd: add support for aarch64
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 43354
Diffstat (limited to 'package/libs/libbsd/patches')
-rw-r--r--package/libs/libbsd/patches/001-aarch64_support.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/libs/libbsd/patches/001-aarch64_support.patch b/package/libs/libbsd/patches/001-aarch64_support.patch
new file mode 100644
index 0000000..6229148
--- /dev/null
+++ b/package/libs/libbsd/patches/001-aarch64_support.patch
@@ -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