I have a relocatable 64-bit .o
file at hand and would like to read each section header. From the wiki I see that the 2-byte value stored in 0x28
should be the start of section header table. The value is 0x0328
.
I then go to address 0x0328
and judging from other information each section header is of 0x40
size and I have a total of 14 headers (this information is confirmed with readelf
). However then I got lost, and what I interpreted is completely different from what readelf
told me:
Section Header 0: I see all 64 bytes are 00, which matches what readelf
told me;
Section Header 1: I see the following values from 0x368
:
However readelf
told me that:
What did I miss?