File upx-aarch64.patch of Package upx
Index: upx-3.09-src/src/miniacc.h
===================================================================
--- upx-3.09-src.orig/src/miniacc.h
+++ upx-3.09-src/src/miniacc.h
@@ -901,6 +901,9 @@
# define ACC_ARCH_CRAY_XMP 1
# define ACC_INFO_ARCH "cray_xmp"
# endif
+#elif defined(__aarch64__)
+# define ACC_ARCH_AARCH64 1
+# define ACC_INFO_ARCH "aarch64"
#else
# define ACC_ARCH_UNKNOWN 1
# define ACC_INFO_ARCH "unknown"
@@ -1388,6 +1391,10 @@ extern "C" {
# define ACC_ABI_BIG_ENDIAN 1
#elif 1 && (ACC_ARCH_MIPS) && defined(__MIPSEL__) && !defined(__MIPSEB__)
# define ACC_ABI_LITTLE_ENDIAN 1
+#elif (ACC_ARCH_AARCH64) && defined(__AARCH64EL__)
+# define ACC_ABI_LITTLE_ENDIAN 1
+#elif (ACC_ARCH_AARCH64) && defined(__AARCH64EB__)
+# define ACC_ABI_BIG_ENDIAN 1
#endif
#endif
#if (ACC_ABI_BIG_ENDIAN) && (ACC_ABI_LITTLE_ENDIAN)