summaryrefslogtreecommitdiff
path: root/recipes/modutils/files/armeb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/modutils/files/armeb.patch')
-rw-r--r--recipes/modutils/files/armeb.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/modutils/files/armeb.patch b/recipes/modutils/files/armeb.patch
new file mode 100644
index 0000000000..a26a3a24eb
--- /dev/null
+++ b/recipes/modutils/files/armeb.patch
@@ -0,0 +1,14 @@
+--- modutils-2.4.27/include/elf_arm.h.orig 2004-09-21 18:37:00.000000000 -0400
++++ modutils-2.4.27/include/elf_arm.h 2004-09-21 18:38:18.000000000 -0400
+@@ -1,7 +1,11 @@
+ /* Machine-specific elf macros for ARM. */
+
+ #define ELFCLASSM ELFCLASS32
++#ifdef __ARMEB__
++#define ELFDATAM ELFDATA2MSB
++#else
+ #define ELFDATAM ELFDATA2LSB
++#endif
+
+ #define MATCH_MACHINE(x) (x == EM_ARM)
+