Call x86-64 __setcontext directly

Since x86-64 __start_context calls the internal __setcontext:

5089: 00000000000417e0   145 FUNC    LOCAL  DEFAULT   13 __setcontext

it should call __setcontext directly.

	* sysdeps/unix/sysv/linux/x86_64/__start_context.S
	(__start_context): Call __setcontext directly.
This commit is contained in:
H.J. Lu 2016-03-01 16:55:36 -08:00
parent dacc1a23d3
commit 521266a819
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/__start_context.S
(__start_context): Call __setcontext directly.
2016-02-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/alpha/kernel-features.h

View File

@ -36,7 +36,7 @@ ENTRY(__start_context)
testq %rdi, %rdi
je 2f /* If it is zero exit. */
call JUMPTARGET(__setcontext)
call __setcontext
/* If this returns (which can happen if the syscall fails) we'll
exit the program with the return error value (-1). */
movq %rax,%rdi