I was reading ELF format specification, where was told all this stuff with elf-headers, program header, sections, segments and etc.All this is referenced as structs with all kind of fields and values.So question is, where all this go? I mean, can I watch them as structs, not as output of readelf util? Is there any intermediate file, where all this elf-magic exist, merged into source code? Or it is just internals of compiler, and in specification structs are mentioned just for humans?) It looks like chicken and egg question for me (speaking about compiled code in terms of code).
.elf format internal inspection
compiling;dynamic linking;elf