mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
x86_64: makecontext: exit (0) if uc_link is the null pointer.
This commit is contained in:
parent
dc97c227c9
commit
f7db31703a
@ -1,3 +1,8 @@
|
||||
2012-07-17 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/x86_64/__start_context.S
|
||||
(__start_context): Preserve zero value for regular exit case.
|
||||
|
||||
2012-07-17 Thomas Schwinge <thomas@codesourcery.com>
|
||||
Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Andreas Jaeger <aj@suse.de>, 2002.
|
||||
|
||||
@ -39,8 +39,9 @@ ENTRY(__start_context)
|
||||
call JUMPTARGET(__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
|
||||
|
||||
2: movq %rax,%rdi
|
||||
2:
|
||||
call HIDDEN_JUMPTARGET(exit)
|
||||
/* The 'exit' call should never return. In case it does cause
|
||||
the process to terminate. */
|
||||
|
Loading…
Reference in New Issue
Block a user