Page 1 of 1

Cross compiling?

Posted: Sun Nov 28, 2004 12:00 am
by sexytractor
Howdy yall,
I need to compile in the aout format on an linux p4 running slack 10 which uses the ELF format. Therefore I need to cross compile. How can gcc be recompiled to output usint aout?

Thanks for any and all help
-sexytractor

Re: Cross compiling?

Posted: Mon Nov 29, 2004 12:00 am
by bregma
sexytractor wrote:How can gcc be recompiled to output usint aout?
You might want to start with Bill Gatliff's GrossGCC FAQ as a portal to the world of GCC cross compiling.

In general, you'll probably need the sources for GCC, ld and binutils, and any runtime libraries for your target.

Re: Cross compiling?

Posted: Mon Nov 29, 2004 12:00 am
by Legend
Enter "ld --help" to see what output formats your ld supports. If it supports both your a.out format and elf32-i386, you might be able just to change to a.out with using the --oformat option ...