Cross debugger and load address (want download to VMA, not LMA)
Grant Edwards
grante@visi.com
Mon Apr 19 16:55:00 GMT 2004
On Mon, Apr 19, 2004 at 05:02:36PM +0200, Toralf Lund wrote:
> >>toralf>> If not, is there any way to produce a version of the binary
> >> with LMA = VMA for .text and .data, besides relinking with a
> >> separate linker script?
> >
> >You can use objcopy to change both the LMA and VMA of sections.
>
> The problem in my case is knowing what values to use, since .data is
> specified relative to .text rather than on an absulte adress. And the
> .text LMA is relative to a different section, too, so the offset between
> LMA and VMA isn't known, either.
What I would do (what I do, actually) is create three linker
command files: one contains all the stuff common to both
memory configurations. The other two contain the stuff that's
different, and then include the first (common) file.
--
Grant Edwards
grante@visi.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list