flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Empty section in PE file

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
I don't know if it is actually a bug of FASM or not...
If there's empty section in PE file, Windows cannot run it - it says that "File is invalid win32 executable".

Code:
format PE console 4.0
include '%fasminc%/win32a.inc'


section '.code' code readable executable


        invoke  ExitProcess,0


section '.data' data readable writeable



section '.idata' import data readable

library kernel32,'kernel32.dll'

import kernel32,\
       ExitProcess,'ExitProcess'    
Post 13 Jun 2005, 17:20
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7721
Location: Kraków, Poland
Tomasz Grysztar
Post 13 Jun 2005, 17:30
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.