aboutsummaryrefslogtreecommitdiff
path: root/ft_write.s
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-25 10:50:28 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-25 10:50:28 +0100
commit5e058cf1a0f66082ecb6f255d2b346c0dfa441c9 (patch)
treed2ebf98e79e350fac4f2cef7d5db75b265aef6ef /ft_write.s
parenta2347a0780a90d9f7add3f63a9752229262eedc2 (diff)
downloadlibasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.tar.gz
libasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.tar.bz2
libasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.zip
Fixing compilation on Linux by removing wrt ..plt in extern declaration
Diffstat (limited to 'ft_write.s')
-rw-r--r--ft_write.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/ft_write.s b/ft_write.s
index 2c0d706..7ab6527 100644
--- a/ft_write.s
+++ b/ft_write.s
@@ -10,9 +10,11 @@
; ;
; **************************************************************************** ;
+%include "libasm.s"
+
%ifdef __LINUX__
%define M_FT_WRITE ft_write
- %define M_ERRNO_LOCATION __errno_location wrt ..plt
+ %define M_ERRNO_LOCATION __errno_location
%define M_SYSCALL_WRITE 0x1
%else
%define M_FT_WRITE _ft_write
@@ -41,7 +43,7 @@ FT_WRITE_ERROR:
neg rax
%endif
push rax
- call M_ERRNO_LOCATION
+ call M_ERRNO_LOCATION M_EXTERN_CALL_SUFFIX
pop qword [rax]
mov rax, -1
ret