On Thursday 15 November 2001 19:16, A V wrote:
> Hi,
>
>    This one i have mailed one month back. But still as
> i didnt get answer i am mailing again. I tried in all
> ways i know.
>    I want to know how to access runtime image of a
> module from another module.

Not sure what you mean... The object file image, or the loaded, linked 
and relocated result?


> And one more doubt
> regarding ELF format is will there be any header in
> runtime image of a module or a program.

Yes, there has to be, in order to "connect" symbol references to the 
corresponding symbols.

Not sure how ELF does it, but the actual code in object files usually 
stuff indexes or offsets where the pointers should go, and then add 
chunks with a lists of offsets to these pointers. Depending on chunk 
type, referred "pointers" will be converted into real pointers either by 
adding the memory base address of some other chunk, or by using the 
"pointer" value as an index or offset into a list of symbol names, which 
are then looked up to get the real addresses.


Anyway, the ELF format has to be documented somewhere, right? Must be 
some way to find it... A quick seach on Google, and some digging around 
messy web sites gave me this:

        http://www.caldera.com/developers/gabi/latest/contents.html
        http://www.muppetlabs.com/~breadbox/software/ELF.txt


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to