Hi,

I'm using msp430-objdump with the IAR disassembler option to generate an IAR
assembly file from my linked elf file.  I can then re-assembler and re-link
it using IAR's tools.  However, the .data section is causing me trouble.  If
I use "-dST" for the objdump, then the .data section is missing, which means
that any initialised data gets 0xff (i.e., blank flash) as its contents.  If
I use "-DST", then the .data section is included (it is disassembled, which
looks a bit odd, but the data is correct), but the section address is the
VMA of the section (0x0200), not the LMA (0xe768, in my case).  What I need
is a way to get the .data section out of the elf file, preferably along with
the rest of the disassembly, but with the origin set to the LMA rather than
the VMA.  Does anyone know if there is a way to do this?

Many thanks,

David Brown
Norway.




Reply via email to