flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > how do i set section size in exe?

Author
Thread Post new topic Reply to topic
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox 01 Mar 2008, 14:07
default is 512 bytes, how do i change size?
Post 01 Mar 2008, 14:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 01 Mar 2008, 14:11
Do you mean the file alignment? The section size for PE gui files is 4kB by default.

There is no assembly time setting for it, but you can modify the formats.inc file to do what you need.

But maybe "format PE native" will do what you want?
Post 01 Mar 2008, 14:11
View user's profile Send private message Visit poster's website Reply with quote
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox 01 Mar 2008, 14:30
pe native? looks nice Smile
but thres no info in manual about that =/
Post 01 Mar 2008, 14:30
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 01 Mar 2008, 14:35
PE native is the Windows driver file format. I have not tried with a normal non-driver exe, so perhaps it won't work (try it and let us know). But basically it means this: all file-offsets = all RVAs = all section-offsets with a basic alignment of 0x20.
Post 01 Mar 2008, 14:35
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 01 Mar 2008, 14:39
Oh yeah, I almost forgot, I posted here to create the PE format manually.
Post 01 Mar 2008, 14:39
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.