Reputation: 125
I am working on a project that involves ELF binary file parsing. From past few weeks I am reading quite a bit on ELF format.
However, one thing I really want to understand is how linkers and loaders use the different sections in an ELF file. Can someone please suggest me some resources which can teach me about the same. Appreciate your help.
Upvotes: 1
Views: 145
Reputation: 213955
A detailed description of how an ELF linker works by the author of GNU gold can be found in a series of blog posts starting here.
(Runtime) loaders do not use any sections of the ELF files (a valid ET_DYN
or ET_EXEC
ELF file can have all section headers stripped). They only use segments. I don't know of any good description of an ELF loader, but here is a possible start.
Upvotes: 1