summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-12-14 16:08:17 +0000
committerMatt Kraai <kraai@debian.org>2001-12-14 16:08:17 +0000
commite62dc86bc770f5c7c59327ec59ef04af9d9904e2 (patch)
tree5fb31b02d35ec0e3e82d26b845138712a614e94f /modutils
parent04ae328851ff1e94bba38c9cccbbdeb47e94f387 (diff)
downloadbusybox-w32-e62dc86bc770f5c7c59327ec59ef04af9d9904e2.tar.gz
busybox-w32-e62dc86bc770f5c7c59327ec59ef04af9d9904e2.tar.bz2
busybox-w32-e62dc86bc770f5c7c59327ec59ef04af9d9904e2.zip
Add support for big-endian ARM (initial patch by Mike Voytovich).
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 8668aaa0f..a0bc65121 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -133,7 +133,7 @@
133#ifndef MODUTILS_MODULE_H 133#ifndef MODUTILS_MODULE_H
134static const int MODUTILS_MODULE_H = 1; 134static const int MODUTILS_MODULE_H = 1;
135 135
136#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" 136#ident "$Id: insmod.c,v 1.76 2001/12/14 16:08:17 kraai Exp $"
137 137
138/* This file contains the structures used by the 2.0 and 2.1 kernels. 138/* This file contains the structures used by the 2.0 and 2.1 kernels.
139 We do not use the kernel headers directly because we do not wish 139 We do not use the kernel headers directly because we do not wish
@@ -350,7 +350,7 @@ int delete_module(const char *);
350#ifndef MODUTILS_OBJ_H 350#ifndef MODUTILS_OBJ_H
351static const int MODUTILS_OBJ_H = 1; 351static const int MODUTILS_OBJ_H = 1;
352 352
353#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" 353#ident "$Id: insmod.c,v 1.76 2001/12/14 16:08:17 kraai Exp $"
354 354
355/* The relocatable object is manipulated using elfin types. */ 355/* The relocatable object is manipulated using elfin types. */
356 356
@@ -393,7 +393,12 @@ static const int MODUTILS_OBJ_H = 1;
393#define MATCH_MACHINE(x) (x == EM_ARM) 393#define MATCH_MACHINE(x) (x == EM_ARM)
394#define SHT_RELM SHT_REL 394#define SHT_RELM SHT_REL
395#define Elf32_RelM Elf32_Rel 395#define Elf32_RelM Elf32_Rel
396#ifdef __ARMEB__
397#define ELFDATAM ELFDATA2MSB
398#endif
399#ifdef __ARMEL__
396#define ELFDATAM ELFDATA2LSB 400#define ELFDATAM ELFDATA2LSB
401#endif
397 402
398#elif defined(__powerpc__) 403#elif defined(__powerpc__)
399 404