This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does LMA affect the S-Record file addressing?


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:

MEMORY
{
    ram : ORIGIN = 0x40000, LENGTH = 0x2000000
}

SECTIONS
{
    SECTIONS_BEGIN
    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]