From acf46919048fba514abf4d263e59e70eaddeb3ae Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 24 Nov 2014 06:33:34 +0000 Subject: [PATCH] libbsd: add support for aarch64 Signed-off-by: Florian Fainelli SVN-Revision: 43354 --- .../libbsd/patches/001-aarch64_support.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/libs/libbsd/patches/001-aarch64_support.patch 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 000000000000..62291482c70e --- /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 -- 2.30.2