flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > please add the directives SectionAligment and FileAligment

Author
Thread Post new topic Reply to topic
shmel



Joined: 14 Feb 2010
Posts: 5
Location: Russia Federation, Tatarstan, Kazan
shmel
please add the directives SectionAligment and FileAligment for FORMAT PE
Post 27 Dec 2010, 11:03
View user's profile Send private message ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
What do you need non-standard section and file alignment for?
Post 27 Dec 2010, 11:16
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17450
Location: In your JS exploiting you and your system
revolution
Is there a reason for doing this? What is wrong with the current settings?

If you just want to experiment with different values you can search this forum for any of the various custom PE generators already posted here.


Last edited by revolution on 27 Dec 2010, 13:51; edited 1 time in total
Post 27 Dec 2010, 11:17
View user's profile Send private message Visit poster's website Reply with quote
shmel



Joined: 14 Feb 2010
Posts: 5
Location: Russia Federation, Tatarstan, Kazan
shmel
I modify the source code fasm, but would like to have them in standard assembly
Post 27 Dec 2010, 12:18
View user's profile Send private message ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17450
Location: In your JS exploiting you and your system
revolution
Moved to "Compiler Internals"
Post 27 Dec 2010, 13:02
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
I modify the source code fasm, but would like to have them in standard assembly

Yeah, but what for?

I am sure you realize how many similar options are there, that someone might sometime want to experiment with. That would overload FASM with zounds options barely ever used, pretty much conflicting with its minimalistic design. Unless there is a real-world reason for supporting such option, I don't see it coming.
Post 27 Dec 2010, 13:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 294
Alphonso
VID, didn't any of those EFI drivers / executables you looked at a while back use 32byte section and file alignment?

Most of the ones I've looked at seem to although it doesn't stop there. There is in some cases Terse Executable headers (TE) too (a cut down PE format MZ-->VZ).

But I would have to say for the number of times I've used it, it is fairly quick and easy just to change FASM source and have a separate compiled FASM for EFI so can very well understand and agree with your comment.
Post 31 Dec 2010, 05:09
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
VID, didn't any of those EFI drivers / executables you looked at a while back use 32byte section and file alignment?

I'm not really sure, it is quite possible for Pre-EFI (PEI) modules. Those were mostly TEs (Terse Executable format that you mentioned), but not exclusively. My guess would be TEs ignore these alignments completely, but there were several "full blown" PEs in PEI last time I checked, where they probably too strived to save precious bytes. We'd need to check all that. If true, this would be a good point, even though still quite a minor one.
Post 31 Dec 2010, 15:20
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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 YouTube, Twitter.

Website powered by rwasa.