Heaventools

   English English  Deutsch Deutsch  Русский Русский
Heaventools Support Forums
May 17, 2012, 02:58:35 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Section headers: boundary check  (Read 3304 times)
0 Members and 2 Guests are viewing this topic.
jmb
New Member
*
Posts: 8

Location:
Cambridge, UK

Offline Offline



« on: June 08, 2008, 07:27:18 pm »

I'm seeing load-time errors (unrelated to PE Explorer) for a tiny DLL I've just built; thought I'd try loading it into PE Explorer to see if anything helpful came out, and it gives this possibly cluefull message -

09.06.2008 02:03:15 : Warning! Section <.rdata> (2) extends beyond the raw file offset of section <.bss> (3).

I'm not sure though whether this is showing me an actual problem, or if it's a specious warning.

The .bss section is empty - in the section headers screen I can see size/pointer of raw data = 00000000, while the .rdata section has non-zero size and pointer. It seems reasonable that .rdata can be seen to extend beyond the file position given for .bss. Should this message perhaps only be considered for sections with non-zero size?

I'd paste the section headers window here, but there seems to be no copy facility. Here's an error-prone visual-CnP...
CODE
SECTION HEADERS
 Name   VirtSize VirtAddr SizeRaw  PtrRaw
.text   00000624 65141000 00000800 00000400
.data   00000510 65142000 00000600 00000C00
.rdata  000000C0 65143000 00000200 00001200
.bss    000000D0 65144000 00000000 00000000
.edata  00000069 65145000 00000200 00001400
.idata  00000174 65146000 00000200 00001600
.reloc  000000B8 65147000 00000200 00001800

(hmm. Shouldn't the "code" tag give a fixed-width font?)

cheers,
-jmb
TechMan
Heaventools
Support
***
Posts: 220

Location:
On Air

Offline Offline



« Reply #1 on: June 09, 2008, 12:19:41 pm »

QUOTE
I'm not sure though whether this is showing me an actual problem, or if it's a specious warning.

It's a warning. Sections may overlap in a file.

QUOTE
Should this message perhaps only be considered for sections with non-zero size?

Yes. Ignore this message for sections with zero size.

QUOTE
I'd paste the section headers window here, but there seems to be no copy facility.

Sorry about that. Will add this option within a week or so.

TechMan Robot
Heaventools Software
jmb
New Member
*
Posts: 8

Location:
Cambridge, UK

Offline Offline



« Reply #2 on: June 09, 2008, 01:10:31 pm »

Cheers. Guess I actually have to figure out what my problem is, now. '<img'>
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC