flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [solved] possible bug in fasm : mov rax,[GS: 0x30] |
Author |
|
revolution 08 May 2024, 18:27
I don't see what you see.
Code: ~ cat test.asm use64 mov rax,[GS:0x30] ~ fasm test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1 passes, 8 bytes. ~ hd test.bin 00000000 65 67 48 a1 30 00 00 00 |egH.0...| 00000008 ~ disasm test.bin 00000000 656748A130000000 mov rax,[gs:0x30] |
|||
08 May 2024, 18:27 |
|
seppe 10 May 2024, 09:33
fasm source:
format PE64 GUI 4.0 entry start section '.text' code readable executable start: mov rax,[GS:0x30] 2 passes 1024 bytes Disassemble using CFF explorer: 401000 65 48 8B 05 28 F0 BF FF mov rax, gs:[rip-0x400fd8] Note: looks like all FS and GS operations are wrongly generated in PE64 files. Seppe |
|||
10 May 2024, 09:33 |
|
revolution 10 May 2024, 09:50
I still don't see what you see.
Code: ~ cat test.asm format PE64 GUI 4.0 entry start section '.text' code readable executable start: mov rax,[GS:0x30] mov rax,[GS:dword 0x30] mov rax,[GS:qword 0x30] db 0x65,0x48,0x8B,5,0x30,0,0,0 ~ fasm test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 2 passes, 1024 bytes. ~ disasm test.exe ;... 00000200 656748A130000000 mov rax,[gs:0x30] 00000208 656748A130000000 mov rax,[gs:0x30] 00000210 6548A13000000000 mov rax,[gs:qword 0x30] -000000 0000021B 65488B0530000000 mov rax,[rel gs:0x253] ;... ~ |
|||
10 May 2024, 09:50 |
|
seppe 10 May 2024, 09:57
The problem is gone in the newer fasm version 1.73.31.
Can you please remove or close this topic? Seppe _________________ Greetings from Seppe |
|||
10 May 2024, 09:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.