flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > PE[+] Characteristics field

Author
Thread Post new topic Reply to topic
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 10 Oct 2006, 21:59
I've noticed that FASM doesn't set this field in PE header total correctly - say when there is no reloc directory entry the field still doesn't have IMAGE_FILE_RELOCS_STRIPPED flag specified, also IMAGE_FILE_DEBUG_STRIPPED flag too should be specified as we dont have any debug sections. Am i correct about all of this?

_________________
Any offers?
Post 10 Oct 2006, 21:59
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 11 Oct 2006, 02:23
IMAGE_FILE_RELOCS_STRIPPED was set by older versions when the image was relocatable but relocations were not put into it (and thus stripped). For the currect case, when the image is not relocatable by default, I thought the "stripped" flag would mean the wrong thing (as there is nothing to strip in such case).
Some of those flags are anyway loosely interpreted by many tools, so I too interpreted them in my own way - too carry some fasm's specific info. Wink
Post 11 Oct 2006, 02:23
View user's profile Send private message Visit poster's website Reply with quote
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent 11 Oct 2006, 08:26
IMAGE_FILE_RELOCS_STRIPPED was set by fasm 1.66 depends on relocs present.
Post 11 Oct 2006, 08:26
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.