flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 09 Dec 2011, 20:07
If you have specific requirements for section alignment then you can edit the fasm source to generate whatever alignment you require.
Overflowz wrote: Can developers add such function to FASM ? |
|||
![]() |
|
mindcooler 09 Dec 2011, 21:31
Modern Windowses doesn't accept arbitrary values. If you need to squeeze file alignment for some older OS, you will probably not mind that much to bake your own PE.
I'm not too familiar with ELF, are there segment alignments there? |
|||
![]() |
|
Overflowz 09 Dec 2011, 22:08
revolution
Hi, I though this option will reduce size of executable when compiled (saw example on VC++ compiler with #pragma comment(linker,"/align 200" or something, don't remember.) That's the only the reason, nothing else. If it's false, just ignore this thread. mindcooler I'm don't know ELF formats yet, but gonna learn soon, cause I'm going to move to Unix/Linux systems. |
|||
![]() |
|
l_inc 09 Dec 2011, 23:33
I agree with the suggestion. The feature is not as important as e.g. custom default stack size specification, but for the sake of completeness it makes sense to allow also file and section alignment customization with an additional directive of the same kind as entry or stack.
|
|||
![]() |
|
l_inc 17 Apr 2012, 16:17
Tomasz Grysztar
Just wanted to ask, whether you have any plans regarding the topic. |
|||
![]() |
|
Tomasz Grysztar 17 Apr 2012, 16:34
No. By PE specification, the file alignment cannot be less than 512 bytes, and I see no reason why one would need bigger alignment, as it would only increase the file size. If it was just to have the option just for the sake of it, then it would not be worth the amount of work required to adjust the formatter.
|
|||
![]() |
|
l_inc 17 Apr 2012, 16:55
Tomasz Grysztar
Fair enough. Thanks for the information. Then the officially invalid alignment values, starting from 4, are going to be achievable only by the manually created PEs. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.