This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about making hex format file from elf?thanks
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Qiang Huang <jameshq at liverpool dot ac dot uk>
- Cc: Ecos-Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 25 Feb 2003 17:57:02 +0000
- Subject: Re: [ECOS] question about making hex format file from elf?thanks
- References: <BDEPKKELILOKGOAOMONOIEKJCBAA.jameshq@liv.ac.uk>
Qiang Huang wrote:
> Hi all:
> When making *.hex from *.elf file what will be the base address for
> *.hex file? will any address reference from *.elf be used in *.hex file(as
> the address to load the data)?
> for example:
> program1 LMA 0x40000, VMA 0x0000 so when building the *.hex file what would
> be the base address? (does the VMA or LMA in *.elf affect the *.hex?)
Unless overridden on the objcopy command line the base address will be the
LMA. All addresses should be based on the LMA in fact.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss