Browse Source

[Pal/Linux] Fix _DkThreadExit call in thread_start

The old code had one indirection too much. This fixes the case that the
thread function returns (instead of calling DkThreadExit). Before this
triggered a SIGSEGV.
Simon Gaiser 5 years ago
parent
commit
003035de7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Pal/src/host/Linux/clone-x86_64.S

+ 1 - 1
Pal/src/host/Linux/clone-x86_64.S

@@ -108,7 +108,7 @@ thread_start:
 	/* movl $SYS_ify(exit), %eax */
 	/* syscall */
 	/* Instead of syscall exit, let's call _DkThreadExit */
-	call *_DkThreadExit(%rip)
+	call _DkThreadExit
 	cfi_endproc
 
 	cfi_startproc