flat assembler
Message board for the users of flat assembler.

Index > Windows > Strange message by OLLYDBG...

Author
Thread Post new topic Reply to topic
AsmGuru62



Joined: 28 Jan 2004
Posts: 1408
Location: Toronto, Canada
AsmGuru62
When I load the EXE produced by FASM (format PE GUI 4.0) - the OLLYDBG gives strange message box:

"...The module... has an entry point outside of code... "
Post 29 Jan 2004, 19:30
View user's profile Send private message Send e-mail Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
EXAMPLE in FASM has both data and code in same section, and ollydbg assumes its data section, so it warns about code being not inside code section.

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 29 Jan 2004, 20:52
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Also FASM does not set Base Of Code and Base Of Data fields in PE header. Privalov?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 29 Jan 2004, 20:53
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
These fields are only for some kind of "compatibility" with COFF format and are actually obsolete (Win32 doesn't use them). The very first versions of fasm's PE formatter were filling them, but then I've decided to remove it, as it's actually impossible to determine that value in case when you can put any sections in any order (for example two data sections interleaved with two code sections).
Post 29 Jan 2004, 23:59
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.