object code created by GCC

Andy Green andy@warmcat.com
Mon Aug 30 20:10:00 GMT 2010


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



More information about the Gcc-help mailing list