aboutsummaryrefslogtreecommitdiff
path: root/ft_read.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_read.s')
-rw-r--r--ft_read.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft_read.s b/ft_read.s
index 1728430..2891045 100644
--- a/ft_read.s
+++ b/ft_read.s
@@ -12,7 +12,7 @@
%ifdef __LINUX__
%define M_FT_READ ft_read
- %define M_ERRNO_LOCATION __errno_location
+ %define M_ERRNO_LOCATION __errno_location wrt ..plt
%define M_SYSCALL_READ 0x0
%else
%define M_FT_READ _ft_read
@@ -41,7 +41,7 @@ FT_READ_ERROR:
neg rax
%endif
push rax
- call M_ERRNO_LOCATION wrt ..plt
+ call M_ERRNO_LOCATION
pop qword [rax]
mov rax, -1
ret