summaryrefslogtreecommitdiffstats
path: root/multiarch-dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'multiarch-dispatch.h')
-rw-r--r--multiarch-dispatch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index e253410..51d724a 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -15,6 +15,10 @@
#undef mips
#define _multiarch_defined_mips
#endif
+#ifdef arm
+#undef arm
+#define _multiarch_defined_arm
+#endif
/* Dispatch arch dependent header */
#if defined(__linux__)
@@ -47,6 +51,12 @@
#else
#include _MULTIARCH_MAKE_HEADER(mipsel,_MULTIARCH_HEADER)
#endif
+#elif defined(__arm__)
+#if defined(__BIG_ENDIAN__)
+#include _MULTIARCH_MAKE_HEADER(armeb,_MULTIARCH_HEADER)
+#else
+#include _MULTIARCH_MAKE_HEADER(arm,_MULTIARCH_HEADER)
+#endif
#else
#error "Unknown architecture, please submit bug report"
#endif
@@ -71,3 +81,7 @@
#undef _multiarch_defined_mips
#define mips 1
#endif
+#ifdef _multiarch_defined_arm
+#undef _multiarch_defined_arm
+#define arm 1
+#endif