Look at this readelf of an ELF file, the first LOAD segment has offset 0.
How is that even possible? Isn't the ELF header at offset 0?
readelf -l

Look at this readelf of an ELF file, the first LOAD segment has offset 0.
How is that even possible? Isn't the ELF header at offset 0?
readelf -l

Copyright © 2021 Jogjafile Inc.
Yes, the ELF header is at offset 0, which means that it will be loaded into the virtual memory of the process that runs the executable. Note that it's marked read-only, and not executable. The second
LOADsegment has anEin the flags column, so that's probably the.textsection.