elf structure explainance

Sep 08, 2003 3 Replies

hello,



I want to know the details about ELF file header structure and process of relocation that happens with an elf file. I m working on a bootlader and need to know the structure and method as to how elf file gets mapped.



Any pointers will help



bye,



nikhil


Look google for "system V ABI" and "ELF". You should find the ABI ref easily at Intel,

Sun and Motorola sites. Note that a significant part is CPU-dependant so in some case

the specific part is a bit difficult to find (68K comes to mind). There's also a book "Linkers and Loaders" about all formats.

Eric

--------------

formatting link

Another reference is glibc sources (elf/dl-*.c). It contains complete source to ld-linux.so.2, though unfortunately it is quite difficult to understand, as it is choke-full of macros.

Cheers,

In order to understand recursion you must first understand recursion.

Hey thnks all of u,

Pls give me the we sources of above if u have.

nikhil

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required