On Wed, Apr 20, 2011 at 10:23 AM, Christopher Friedt
<[email protected]> wrote:
> localhost ~ # x86_64-pc-linux-bionic-gcc -static -m32
> -specs=specfile.txt -o hi hi.c
> localhost ~ # ./hi
> Hello, Bionic World!

/ # LD_LIBRARY_PATH=/lib ./hi
Hello, Bionic world!

I am now in the choot via busybox ;-)

> 1) Fix internal specs (had to manually adjust for crts startfile/endfile)

Fixed 1) partially.

Still need to add the proper linker spec (/bin/linker) and default
library path spec (/lib).

> 2) make it work for -m64 by default

Forgetting about 2) this for now until upstream cares about 64-bit
support. It's actually pretty straight forward to implement, but my
immediate agenda will be x86 and arm.

3) This is definitely proving to be a good lesson in ensuring
compatibility. I've had to add stubs for & implement some syscalls to
get busybox to compile. Every package that doesn't compile is like a
new adventure in /usr/include convention. Building a static strace for
now to help diagnose problems.

It's coming along, and as soon as most of the busybox applets Just
Work™ I'll put it up the overlay. Seems promising so far though ;-)

C

Reply via email to