diff options
author | Matt Kraai | 2001-12-14 16:08:17 +0000 |
---|---|---|
committer | Matt Kraai | 2001-12-14 16:08:17 +0000 |
commit | e62dc86bc770f5c7c59327ec59ef04af9d9904e2 (patch) | |
tree | 5fb31b02d35ec0e3e82d26b845138712a614e94f | |
parent | 04ae328851ff1e94bba38c9cccbbdeb47e94f387 (diff) | |
download | busybox-e62dc86bc770f5c7c59327ec59ef04af9d9904e2.zip busybox-e62dc86bc770f5c7c59327ec59ef04af9d9904e2.tar.gz |
Add support for big-endian ARM (initial patch by Mike Voytovich).
-rw-r--r-- | modutils/insmod.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 8668aaa..a0bc651 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -133,7 +133,7 @@ #ifndef MODUTILS_MODULE_H static const int MODUTILS_MODULE_H = 1; -#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" +#ident "$Id: insmod.c,v 1.76 2001/12/14 16:08:17 kraai Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -350,7 +350,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H static const int MODUTILS_OBJ_H = 1; -#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" +#ident "$Id: insmod.c,v 1.76 2001/12/14 16:08:17 kraai Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -393,7 +393,12 @@ static const int MODUTILS_OBJ_H = 1; #define MATCH_MACHINE(x) (x == EM_ARM) #define SHT_RELM SHT_REL #define Elf32_RelM Elf32_Rel +#ifdef __ARMEB__ +#define ELFDATAM ELFDATA2MSB +#endif +#ifdef __ARMEL__ #define ELFDATAM ELFDATA2LSB +#endif #elif defined(__powerpc__) |