Brad Parker wrote:
Bert Thomas wrote:
The 3rd header contains an p_offset=0. Why? I
don't get it.
it's been a while, but I don't think that offset is from the begining of
the file. i may be wrong, however. I thought there was a fixed size
header space (like 64k).
There is, but this is what the description in the ELF standard for
p_offset says:
"This member gives the offset from the beginning of the file at which
the first byte of the segment resides."
So if p_offset = 0 it refers to the header ?!
you might try looking at the linux exec code for elf files... that might
give you an idea how they get loaded.
I will do, but even if I understand that, what can I possibly miss in
the description of the formal standard?
(Ref:
http://www.skyfree.org/linux/references/ELF_Format.pdf)
Thanks!
Bert