[ECOS] Does LMA affect the S-Record file addressing?

Qiang Huang jameshq@liverpool.ac.uk
Fri Jan 24 12:46:00 GMT 2003

Hi all:
    I have tried to set the LMA in the linker script to be different as the
VMA of the .text section and build the program as:

    ram : ORIGIN = 0x40000, LENGTH = 0x2000000

    SECTION_rom_vectors (ram, 0x40000, LMA_EQ_VMA)
    SECTION_text (ram, ALIGN (0x1), AT(0x1000000))

but when I use the command xxx-elf-objcopy -O srec a.out a.srec, to generate
the S-record file the address appeared in the *.srec file is still the same
as the VMA start from 0x4000 not the one I specified 0x100000.
Am I wrong somewhere? thanks a lot.

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list