On Sun, Oct 3, 2010 at 10:19 AM, Andreas Färber andreas.faerber@web.de wrote:
Am 22.08.2009 um 14:16 schrieb Blue Swirl:
Configuring for *-elf is easier than *-linux, because then the include files, libgcc, crt0.o etc. will not be needed. These can be difficult to compile sometimes. The drawback is that you can't use the compiler for normal Unix programs, only for OpenBIOS and maybe Linux kernel.
BTW, there is a bug in one of the tools (binutils, gcc, gdb, can't remember which): if you want the tool for powerpc64, the only supported target is powerpc64-linux, powerpc64-elf won't work.
[snip]
It's GCC that doesn't know powerpc64-elf or powerpc64-eabi.
Does anyone have any pointers how to set up $PREFIX/powerpc-linux/include etc. without access to a working ppc Linux system? GCC 4.4.5 --target=powerpc64-linux build is failing during libdecnumber compilation for lack of string.h and stdio.h.
Perhaps you can extract the headers from a RPM with cpio or from a DEB with ar.
In theory, adding powerpc64-elf support to GCC should be a matter of adding a target Makefile fragment (t-elf64) to gcc/config/rs6000, maybe some other small changes.