flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
revolution
Alexander wrote:
Alexander wrote: It was also possible to set the model. Alexander wrote: And how can segments in fasm be valid combined with permissions like Alexander wrote: What means fixups? Alexander wrote: An other question not related with tasm: How do I get my code ready of 64-Bit processors? I now a 64-Bit System like Vista64 is able of running a 32-Bit app on the top of Vista64. But when I call a 32-Bit Win32 dll like a dll created with fasm from .NET an error is thrown by .NET, so the .NET app has to be set manually to 32-Bit. Is fasm supported on both IA64 and x86_64 (AMD64)? |
|||
![]() |
|
Alexander
revolution,
thank you for your answer. Is it possible to choose the target cpu without macros? Another, question: Do you know which segements are allowed and which permissions I can give them? Would you please be so kind to give me a detailed list? |
|||
![]() |
|
revolution
Alexander wrote: Is it possible to choose the target cpu without macros? Alexander wrote: Another, question: Do you know which segements are allowed and which permissions I can give them? |
|||
![]() |
|
Alexander
Quote: All segments are allowed, And you can give them any permissions you require. Perhaps I don't understand your question properly? So, is it possible to give a relocation information a readable and writeable or to give a data segment an executable attribute? What combinations are commonly used in fasm on windows (and linux) and which of them make sense? Thank you. |
|||
![]() |
|
revolution
Alexander wrote: So, is it possible to give a relocation information a readable and writeable Alexander wrote: What combinations are commonly used in fasm on windows (and linux) and which of them make sense? |
|||
![]() |
|
Alexander
Ok, I'll do so.
|
|||
![]() |
|
Alexander
revolution,
I haven't found anything in Win32WX or Win32AX. I've just found .text, .data, .idata. ![]() But what is about edata or relocation information? Is there anywhere on the web a complete list on how to combine segments with permissions? I found the following in the manual: http://flatassembler.net/docs.php?article=manual#2.4.2) But thats a little bit weak, could anyone please give me some more information about which segments are allowed and how to combine attribute or permissions with segments? Another question: Is it possible to create a stack with "enter", or how can I create one as I could in tasm? Thanks Alexander |
|||
![]() |
|
revolution
Code: macro .data { section '.data' data readable writeable } macro .code { section '.text' code readable executable } ... section '.idata' import data readable writeable I think you expect that there is some "correct" way to select flags, but there is no such thing. You can set whatever flags you want that suit your purpose. There are some "standard" flags used and "standard" sections defined but these are by no means what you must do. You could if you wanted put all of your code+data+imports+fixups+exports+whatever in one section with all the flags set. some AVs might get upset about it but it would still be a valid exe. |
|||
![]() |
|
Alexander
So, a stupid question, but is it really possible to share my code segment, as I could do with a data segment?
|
|||
![]() |
|
revolution
Alexander wrote: So, a stupid question, but is it really possible to share my code segment, as I could do with a data segment? |
|||
![]() |
|
Alexander
Ok, so it would be possible. But isn't that a little bit unsecure or are there any needs to do such things?
|
|||
![]() |
|
revolution
Alexander wrote: Ok, so it would be possible. But isn't that a little bit unsecure or are there any needs to do such things? |
|||
![]() |
|
Alexander
A last question about the PE-Format is it possible to set another Version than "format PE GUI 4.0"? Supports fasm any older PE-Formats?
|
|||
![]() |
|
revolution
Alexander wrote: A last question about the PE-Format is it possible to set another Version than "format PE GUI 4.0"? Supports fasm any older PE-Formats? |
|||
![]() |
|
Alexander
revolution,
thank you for your patience regarding my questions. Alexander |
|||
![]() |
|
vid
IMO it is always wise to stick to standard section settings. I'd say FASM is one of very few compilers (if not only one) capable of producing non-standard PEs, and there are LOT of tools which have troubles with them. Not just antiviruses, you can have trouble with debuggers, disassemblers, protectors, or even some windows loaders. Especially if you combine flags to some complete nonsense.
If you want to use FASM like other assemblers (with linker), you must set "format MS COFF" instead of "format PE" (eg. use FASM just to produce .obj files, not .exe files directly), and then use linker on these object files same way you are used to from TASM. |
|||
![]() |
|
Alexander
vid,
where can I find the standard sections settings? I've looked nearly everywhere, but I haven't found anything. ![]() |
|||
![]() |
|
revolution
Alexander wrote: where can I find the standard sections settings? I've looked nearly everywhere, but I haven't found anything. Last edited by revolution on 20 Jan 2009, 13:27; edited 1 time in total |
|||
![]() |
|
Alexander
Ok, revolution.
I'm sorry. |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.