This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Does LMA affect the S-Record file addressing?
- From: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 24 Jan 2003 12:17:19 -0000
- Subject: [ECOS] 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