Explorar o código

[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 %!s(int64=6) %!d(string=hai) anos
pai
achega
003035de7e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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