This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Call x86-64 __setcontext directly
- From: "H.J. Lu" <hjl at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 1 Mar 2016 15:41:56 -0800
- Subject: PATCH: Call x86-64 __setcontext directly
- Authentication-results: sourceware.org; auth=none
Since x86-64 __start_context calls the internal __setcontext, it
should call __setcontext directly.
I will check it in shortly.
H.J.
---
* sysdeps/unix/sysv/linux/x86_64/__start_context.S
(__start_context): Call __setcontext directly.
diff --git a/sysdeps/unix/sysv/linux/x86_64/__start_context.S b/sysdeps/unix/sysv/linux/x86_64/__start_context.S
index 408d30d..6a33cd0 100644
--- a/sysdeps/unix/sysv/linux/x86_64/__start_context.S
+++ b/sysdeps/unix/sysv/linux/x86_64/__start_context.S
@@ -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