Re:ELF101 a Linux executable walkthrough
by ange4771_ on Wednesday November 20, 2013 @08:12AM
(#6767744)
An introduction on a single page can't go deep!
"This is the whole file, however, most ELF files contain many more elements. Explanations are simplified, for conciseness."
Re:ELF101 a Linux executable walkthrough
by Scene_Cast2 on Wednesday November 20, 2013 @08:30AM
(#6767818)
It also glosses over relocation mechanisms. I was curious if relocation info is stored in a section (like .reloc in Windows).
Particularly, in modern Linux binaries, syscalls are not hardcoded as int instructions, but are dynamically mapped via a "virtual DSO" mechanism to the best instruction for the current architecture (int 80, or syscall/sysenter).
Also, in practice, the ELF would be dynamically linking to libc, and libc would be making the calls.