flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
donn 26 Jun 2018, 04:58
Yeah, I've seen the COFF Linker warnings about inconsistent attributes also.
Vid's Mixing assembly with MS Visual C, available in the fasm downloads page, has been very instructive for me and uses your third option: Code: section '.text' code readable executable It also has a data example: Code: section '.data' data readable writeable The example is MS COFF 32, not 64. I would assume a writeable '.text' section is used when the instructions are re-written. I've been self-modifying instructions quite heavily lately but don't remember seeing problems without this flag. I have the writeable flag included now, though, along with align 16. The MS COFF specs have a lot details such as flag binary values and say the number of sections can be variable though the loader limits the section count to 96. A similar fasm thread that goes a little deeper here. |
|||
![]() |
|
fasmnewbie 26 Jun 2018, 06:18
Thanks for the clarifications and links, donn.
Seems that the safest option for me (for now) is to use full similar section flags as the PE (the third one), since IMO, most MS services (kernel, msvcrt) use similar section control flags. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.