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]

Loading problem



--- Begin Message --- Hi all,
Slightly offline question from eCos.

I have written a program which resides in the flash and loads another program to RAM and executes it.
If the downloadable code is STARTUP_RAM the code is working.

If the downloadable code has to be programmed to another region of flash memory and execute from there,
i have an issue.
*) While sending the executable, i am sending the VMA of the ELF file.
*) But in ROM startup, .data section has 2 addresses, VMA and LMA.
*) The downloaded code will copy from this data to RAM.

The question is :
*) How to extract the LMA and send it to the target.
*) I am using libelf library where there is no call to get LMA address.

thanx in advance.
regards

--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES: 3334248 =
= Alternate email : nsur_mys@rediffmail.com =
= QOT: True happiness will be found only in true love. !============================================================================!



--- End Message ---
-- 
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]