flat assembler
Message board for the users of flat assembler.

Index > Windows > PE file alignment

Author
Thread Post new topic Reply to topic
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo
I would like to know how to change the sections alignment. They are standartly set to 200h (I think) wich makes PE executables too long.

Maybe something like this would be nice:

Code:
;...
section '.code' code readable executable alignment 100h
;...
    


thankyou.
Post 04 Sep 2006, 17:12
View user's profile Send private message Reply with quote
marciano



Joined: 27 Feb 2005
Posts: 18
Location: Argentina
marciano
I think you can't set the aligment to a value less than 200h (maybe I'm wrong).
Post 04 Sep 2006, 18:04
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
You can set the file alignment pretty low, but if it's below 0x200 it won't load on all windows versions...
Post 04 Sep 2006, 22:53
View user's profile Send private message Visit poster's website Reply with quote
Xanfa



Joined: 03 Aug 2006
Posts: 29
Xanfa
hmm...It's processor achitecture ... It is 4kb...
Post 05 Sep 2006, 12:34
View user's profile Send private message Yahoo Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Xanfa wrote:
hmm...It's processor achitecture ... It is 4kb...

no, this one is Virtual Alignment, or memory alignment or however you call it - the other one
Post 05 Sep 2006, 12:45
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
f0dder wrote:
You can set the file alignment pretty low, but if it's below 0x200 it won't load on all windows versions...


what versions dont work with below 200h? with PellesC I've always used 20h and works great on winXPsp2, but I did notice that ie. UPX does not support filealign below 200h...

_________________
When We Ride On Our Enemies
support reverse smileys |:
Post 05 Sep 2006, 15:06
View user's profile Send private message MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
okasvi, win9x iirc... perhaps 2k, but can't remember (2k is a bit more "nazi" in some respects, like requiring an import from kernel32 (or one that ends up importing from kernel32)) - if not there, it'll silently refuse to load the executable. NT4 might be worth checking as well.
Post 05 Sep 2006, 15:11
View user's profile Send private message Visit poster's website Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost
f0dder wrote:
2k is a bit more "nazi" in some respects


Windows2000 has superior scientists and engineers and weapon technology but follows an insane ideology? o:

_________________
redghost.ca
Post 06 Sep 2006, 13:33
View user's profile Send private message AIM Address MSN Messenger Reply with quote
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo
thakyou all
Post 15 Sep 2006, 12:20
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.