https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a34f1ed03cd5c34e9fac9…
commit a34f1ed03cd5c34e9fac95f72a9e2eb3947b84cc
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Oct 28 18:52:25 2023 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Nov 10 19:20:24 2023 +0200
[CRT] Make ML based asm code GAS compatible
Our transpiler asmpp cannot handle rip relative addressing for "[symbol]".
---
sdk/lib/crt/math/libm_sse2/fmod.asm | 2 +-
sdk/lib/crt/math/libm_sse2/fmodf.asm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/crt/math/libm_sse2/fmod.asm b/sdk/lib/crt/math/libm_sse2/fmod.asm
index cc1fb710997..880b12cf3ac 100644
--- a/sdk/lib/crt/math/libm_sse2/fmod.asm
+++ b/sdk/lib/crt/math/libm_sse2/fmod.asm
@@ -142,7 +142,7 @@ fmod PROC FRAME
jmp @fail
@fail:
- lea rcx, [@fmodz] ; fname
+ lea rcx, @fmodz ; fname
mov edx, FPCODEFMOD ; opcode
; mov r8, INDEF ; value
mov r9d, DOMAIN ; type
diff --git a/sdk/lib/crt/math/libm_sse2/fmodf.asm b/sdk/lib/crt/math/libm_sse2/fmodf.asm
index 5e7aa2578fd..ddc4aca5e7e 100644
--- a/sdk/lib/crt/math/libm_sse2/fmodf.asm
+++ b/sdk/lib/crt/math/libm_sse2/fmodf.asm
@@ -142,7 +142,7 @@ fmodf PROC FRAME
jmp @fail
@fail:
- lea rcx, [@fmodfz] ; fname
+ lea rcx, @fmodfz ; fname
mov edx, FPCODEFMOD ; opcode
; mov r8d, [rsp] ; value
mov r9d, DOMAIN ; type