From abdc7c5829e4df7100e38ea48fb560c6293a3ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sun, 11 Mar 2018 14:59:39 +0200 Subject: Add aarch64 support --- NEWS | 2 ++ multiarch-dispatch.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/NEWS b/NEWS index d042235..2fb7f8f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- add support for aarch64 + Version 1.0.13 - 09 January 2011, by Olivier Blin - fix other multiarch() macros by adding nil diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h index f6c2cef..a76fe19 100644 --- a/multiarch-dispatch.h +++ b/multiarch-dispatch.h @@ -19,6 +19,10 @@ #undef arm #define _multiarch_defined_arm #endif +#ifdef aarch64 +#undef aarch64 +#define _multiarch_defined_aarch64 +#endif /* Undefine some interfering definitions (not built-ins) */ /* We can only redefine value 1, so we let it fail with other values */ @@ -62,6 +66,10 @@ #define _multiarch_defined_armeb #undef armeb #endif +#if aarch64 == 1 +#define _multiarch_defined_aarch64 +#undef aarch64 +#endif /* Dispatch arch dependent header */ #if defined(__linux__) @@ -100,6 +108,8 @@ #else #include _MULTIARCH_MAKE_HEADER(arm,_MULTIARCH_HEADER) #endif +#elif defined(__aarch64__) +#include _MULTIARCH_MAKE_HEADER(aarch64,_MULTIARCH_HEADER) #else #error "Unknown architecture, please submit bug report" #endif @@ -170,3 +180,7 @@ #undef _multiarch_defined_armeb #define armeb 1 #endif +#ifdef _multiarch_defined_aarch64 +#undef _multiarch_defined_aarch64 +#define aarch64 1 +#endif -- cgit v1.2.1