This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: object code created by GCC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]