[uClibc]mipsel syscall stat ... argh!
Erik Andersen
andersen at codepoet.org
Fri Feb 22 00:50:16 UTC 2002
On Thu Feb 21, 2002 at 03:42:13PM -0800, Geoffrey Espin wrote:
> Seems that MIPS needs its own pipe.c like SH.
>
> Sorry, my __asm__() understanding & MIPS assembly ability are
> near 0... but this cobbly-gook actually works.
>
> This patch also includes adding _mmap.c lifted from v850 as well.
>
> With this patch, one can now build a working mipsel-busybox with ash/vi/...
Excellent. Applied, thanks!
> % mipsel-linux-size busybox.*/busybox
> text data bss dec hex filename
> 1235728 28380 63748 1327856 1442f0 busybox.glibc/busybox
> 740280 10600 37068 787948 c05ec busybox.uclibc/busybox
That size for busybox uclibc seems awfully big, even for being
staticly compiled... Do you have debugging enabled? Or did you
enable a bunch of busybos applets? Clearly, getting shared
libraries working will help a great deal.
> #ifdef L_pipe
> #include <unistd.h>
> /*
> - * SH has a weird register calling mechanism for pipe, see pipe.c
> + * SH & MIPS has a weird register calling mechanism for pipe, see pipe.c
> */
> -#if !defined(__sh__)
> +#if !defined(__sh__) && !defined(__mips__)
> _syscall1(int, pipe, int *, filedes);
BTW, I removed the arch special cases here. This creates a
pipe.o file, but that is then replaced by the arch specific one.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list