Re: object code created by GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Andy Green,

I appreciate your message. ld scripts are Linker Command Language
files and after executing ld command we still have a relocatable ELF
code.

Can ld make an absolute object code(a bootable image)?


On Sun, Aug 29, 2010 at 2:36 PM, Andy Green <andy@xxxxxxxxxxx> wrote:
> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux