Fix for busybox's df

Amadeus amadeus at
Sat Sep 30 09:43:57 CEST 2006


do you listen?

On Friday 29 September 2006 21:56, Malcolm wrote:
> On 9/29/06, Amadeus <amadeus at> wrote:
> > There are calls to the macro count_leading_zeros, which is using a
> > table of constants. Code sequence:
> >
> > mov     r1, r6, lsr r3
> > ldr     r2, [pc, #....] 0x30F8C
> > ldrb    r3, [r2, r1]    <<<< boom!
> This code is the result of not compiling with -fPIC
> It looks like the flags used to build libgcc in the toolchain need to
> change, or we build our own version when building DSLinux.

We need to build the gcc libraries in some different versions.
One of the (new) variants is -mswp-byte-writes. Another -fPIC.

There is support for such builds in gcc, but I havn't figured it out.
It's in the gccint info file.

We're back to the times when men were men 
and wrote their own device drivers.

(Linus Torvalds)

More information about the dslinux-devel mailing list