flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Imports do not satisfy PE standard a bit

Author
Thread Post new topic Reply to topic
ravenX



Joined: 01 Oct 2005
Posts: 7
ravenX
Import macros don't pad function names by 0's to even boundary as specified in PE standard. I was developing PE packer program(with FASM) and faced this problem. This can be fixed with one 'align 2' line.
Post 01 Oct 2005, 18:07
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
I never heard of this even though I have read many PE tutorials. But it's not important. When I was writing PE analyzer I came through many stupid things made by different compilers. I saw some delphi program (not .dll) which has export table with no exports (?). Weird, but that's true. And don't forget MS Word exe file which is well known for its inability to be packed - it doesn't fulfill all PE standards afair Smile
Post 01 Oct 2005, 18:14
View user's profile Send private message Visit poster's website Reply with quote
ravenX



Joined: 01 Oct 2005
Posts: 7
ravenX
Actually OS importer would work better if hint data (word) were aligned to word boundary. All PE's i've tried had this alignment(except my own FASM program).It's not so hard to fix to argue about Smile
Post 01 Oct 2005, 18:21
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
You're right, to satisfy the PE/COFF specification they should be aligned at least on even boundary. I have corrected this.
Post 02 Oct 2005, 10:19
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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.