Browse Source

* made calls to seterrno position-independent

git-svn-id: trunk@24640 -
Jonas Maebe 12 years ago
parent
commit
78f94ab035
1 changed files with 7 additions and 7 deletions
  1. 7 7
      rtl/linux/x86_64/syscall.inc

+ 7 - 7
rtl/linux/x86_64/syscall.inc

@@ -35,7 +35,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -57,7 +57,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -82,7 +82,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -110,7 +110,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -141,7 +141,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -175,7 +175,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;
@@ -213,7 +213,7 @@ asm
   jnae .LSyscOK           { Jump to error handler if error.  }
   negq  %rax
   movq  %rax,%rdi
-  call  seterrno
+  call  seterrno@PLT
   movq  $-1,%rax
 .LSyscOK:
 end;