Hi everyone,
I am trying to figure out how to get the file offset of a segment in an ELF. I observe that the field offset in Segment has private attribute, so the only way to get offset is to parse again the header of this segment? Is there some reason to make offset as private?
Many thanks.
Hi everyone, I am trying to figure out how to get the file offset of a segment in an ELF. I observe that the field
offset
inSegment
hasprivate
attribute, so the only way to getoffset
is to parse again the header of this segment? Is there some reason to makeoffset
asprivate
? Many thanks.