flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
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
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
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
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
Tomasz Grysztar
Just wanted to ask, whether you have any plans regarding the topic. |
|||
![]() |
|
Tomasz Grysztar
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
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.