How to create object from binary?
Nick Clifton
nickc@cambridge.redhat.com
Tue May 29 00:47:00 GMT 2001
Hi Michael,
> However, this places the image data in the .data section, which I
> can not change - this leads to problems because I can't put it in
> the memory section where it needs to be (in flash, not in RAM like
> the .data sections from my code).
>
> Is there an easy solution which I overlooked?
Yes - you can use a linker script to change the section. For example
with a script like this:
SECTIONS
{
.flash :
{
*(.data)
}
}
You can do "ld -T conv.t image image.flash" to move all of the
contents of the .data section in the "image" file into a section
called ".flash" in "image.flash".
Cheers
Nick
More information about the Binutils
mailing list