aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libbsd/patches/001-aarch64_support.patch
diff options
context:
space:
mode:
authorJames <>2015-11-04 11:49:21 +0000
committerJames <>2015-11-04 11:49:21 +0000
commit716ca530e1c4515d8683c9d5be3d56b301758b66 (patch)
tree700eb5bcc1a462a5f21dcec15ce7c97ecfefa772 /package/libs/libbsd/patches/001-aarch64_support.patch
downloadtrunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.tar.gz
trunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.tar.bz2
trunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.zip
trunk-47381HEADmaster
Diffstat (limited to 'package/libs/libbsd/patches/001-aarch64_support.patch')
-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