Cross compiling?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sexytractor
Posts: 1
Joined: Sun Nov 28, 2004 12:00 am

Cross compiling?

Post 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
bregma
Member
Member
Posts: 25
Joined: Tue Oct 26, 2004 11:00 pm
Location: the back woods
Contact:

Re: Cross compiling?

Post 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.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: Cross compiling?

Post 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 ...
*post*
Post Reply