object code created by GCC
Andy Green
andy@warmcat.com
Sun Aug 29 17:07:00 GMT 2010
On 08/29/10 08:09, Somebody in the thread at some point said:
> I want to obtain an executable image from C files by gcc for 32 bit Intel CPU.
> I do not want gcc add some headers and so on. I want a code with
> absolute addresses so that I can write the code directly on a BIOS
> chip and boot a computer from it.
>
> Can gcc do that? Do i need any extra tool to do it?
It's not a gcc issue, look into ld scripts.
Here's an ld script I use to place sections from a gcc link of a bootloader:
http://git.warmcat.com/cgi-bin/cgit/qi/tree/src/cpu/imx31/qi.lds?h=txtr
-Andy
More information about the Gcc-help
mailing list