public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Does LMA affect the S-Record file addressing?
@ 2003-01-24 12:46 Qiang Huang
  0 siblings, 0 replies; only message in thread
From: Qiang Huang @ 2003-01-24 12:46 UTC (permalink / raw)
  To: Ecos-Discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-24 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-24 12:46 [ECOS] Does LMA affect the S-Record file addressing? Qiang Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).