[BusyBox] tiny patch to support loadable modules on big endian ARM

Erik Andersen andersen at codepoet.org
Sun Dec 16 02:30:28 UTC 2001


On Thu Dec 13, 2001 at 08:28:52PM -0800, Mike Voytovich wrote:
> Hello,
> 
> Here's a tiny patch to insmod so that it works on big endian ARM targets:
> 
> mikev at porto:~/salem/vendor/busybox/modutils$ diff -u insmod.c insmod_armeb.c 
> --- insmod.c    Thu Dec 13 20:16:19 2001
> +++ insmod_armeb.c      Thu Dec 13 20:15:15 2001
> @@ -393,7 +393,11 @@
>  #define MATCH_MACHINE(x) (x == EM_ARM)
>  #define SHT_RELM       SHT_REL
>  #define Elf32_RelM     Elf32_Rel
> +#ifdef __ARMEB__
> +#define ELFDATAM       ELFDATA2MSB
> +#else
>  #define ELFDATAM       ELFDATA2LSB
> +#endif

Applied.  Is Big endian ARM working these days?  Last I looked
the kernel needed a lot of work to support it...

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list