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]

Re: question about making hex format file from elf?thanks


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


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