flat assembler
Message board for the users of flat assembler.
Index
> Windows > Comparing FASM to TASM Goto page 1, 2 Next |
Author |
|
revolution 19 Jan 2009, 18:26
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)? |
|||
19 Jan 2009, 18:26 |
|
Alexander 19 Jan 2009, 18:54
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? |
|||
19 Jan 2009, 18:54 |
|
revolution 19 Jan 2009, 19:01
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? |
|||
19 Jan 2009, 19:01 |
|
Alexander 19 Jan 2009, 19:13
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. |
|||
19 Jan 2009, 19:13 |
|
revolution 19 Jan 2009, 19:23
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? |
|||
19 Jan 2009, 19:23 |
|
Alexander 19 Jan 2009, 19:27
Ok, I'll do so.
|
|||
19 Jan 2009, 19:27 |
|
Alexander 20 Jan 2009, 12:38
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 |
|||
20 Jan 2009, 12:38 |
|
revolution 20 Jan 2009, 12:41
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. |
|||
20 Jan 2009, 12:41 |
|
Alexander 20 Jan 2009, 12:48
So, a stupid question, but is it really possible to share my code segment, as I could do with a data segment?
|
|||
20 Jan 2009, 12:48 |
|
revolution 20 Jan 2009, 12:50
Alexander wrote: So, a stupid question, but is it really possible to share my code segment, as I could do with a data segment? |
|||
20 Jan 2009, 12:50 |
|
Alexander 20 Jan 2009, 12:52
Ok, so it would be possible. But isn't that a little bit unsecure or are there any needs to do such things?
|
|||
20 Jan 2009, 12:52 |
|
revolution 20 Jan 2009, 12:57
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? |
|||
20 Jan 2009, 12:57 |
|
Alexander 20 Jan 2009, 12:59
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?
|
|||
20 Jan 2009, 12:59 |
|
revolution 20 Jan 2009, 13:03
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? |
|||
20 Jan 2009, 13:03 |
|
Alexander 20 Jan 2009, 13:05
revolution,
thank you for your patience regarding my questions. Alexander |
|||
20 Jan 2009, 13:05 |
|
vid 20 Jan 2009, 13:07
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. |
|||
20 Jan 2009, 13:07 |
|
Alexander 20 Jan 2009, 13:13
vid,
where can I find the standard sections settings? I've looked nearly everywhere, but I haven't found anything. |
|||
20 Jan 2009, 13:13 |
|
revolution 20 Jan 2009, 13:25
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 |
|||
20 Jan 2009, 13:25 |
|
Alexander 20 Jan 2009, 13:27
Ok, revolution.
I'm sorry. |
|||
20 Jan 2009, 13:27 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.