|
From: Greg P. <gp...@us...> - 2005-10-21 02:09:18
|
Julian Seward writes: > Section Headers: > [Nr] Name Type Addr Off Size ES Flg Lk Inf Al > [...] > [24] .plt NOBITS 00025618 0155f0 000918 00 WAX 0 0 4 > > Offset(0x0155f0) + Size(0x000918) = 0x15f08 = 89864, whilst the file > size is only 88900. Note the NOBITS section type. A NOBITS section creates zero-filled memory when loaded. It doesn't occupy any space in the file. > Also it's a bit strange that there are a four of sections that start > at the same offset: > > [23] .sbss NOBITS 000255f0 0155f0 000028 00 WA 0 0 8 > [24] .plt NOBITS 00025618 0155f0 000918 00 WAX 0 0 4 > [25] .bss NOBITS 00025f30 0155f0 000000 00 WA 0 0 1 > [26] .gnu_debuglink PROGBITS 00000000 0155f0 000018 00 0 0 4 Three of these are also NOBITS sections. They don't occupy any space in the file so they don't overlap with the following PROGBITS section. Their file offsets are ignored. -- Greg Parker gp...@us... |