What is ELF header? Can anyone explain in detail how it works and why is it required? I can't find any good resource which provides a crisp explanation of it.
The ELF header is at the start of the executable.
https://en.wikipedia.org/wiki/Executable_and_Linkable_Format