diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-11-24 06:33:34 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-11-24 06:33:34 +0000 |
commit | 41a786620a2fc5b8b60b2edeed3d643ecf3fa70b (patch) | |
tree | 94cb00165204b2fc291ac5e0d9395975977b1dba /package/libs/libbsd | |
parent | 688e48076b9d63fc68c03312418fc2516bdf8e33 (diff) | |
download | master-187ad058-41a786620a2fc5b8b60b2edeed3d643ecf3fa70b.tar.gz master-187ad058-41a786620a2fc5b8b60b2edeed3d643ecf3fa70b.tar.bz2 master-187ad058-41a786620a2fc5b8b60b2edeed3d643ecf3fa70b.zip |
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
Diffstat (limited to 'package/libs/libbsd')
-rw-r--r-- | package/libs/libbsd/patches/001-aarch64_support.patch | 19 |
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 0000000000..62291482c7 --- /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 |