Re: object code created by GCC

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

 



On 08/30/10 09:26, Somebody in the thread at some point said:

Hi -

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)?

objcopy is able to take the resulting ELF from ld, and honouring the layout from the linker script generate the binary image you're looking for:

objcopy -O binary -S <output name> <input elf file>

-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