Blame SOURCES/glibc-rh1531168-2.patch

147e83
commit bbab82c25da9b504c0804119840de7aeab0eeeba
147e83
Author: Andreas Schwab <schwab@suse.de>
147e83
Date:   Tue Aug 4 12:35:50 2015 +0200
147e83
147e83
    Properly terminate FDE in makecontext for ix86 (bug 18635)
147e83
147e83
Downstream never set test-xfail-tst-makecontext, so it is not removed by
147e83
this patch.
147e83
147e83
diff --git a/sysdeps/unix/sysv/linux/i386/makecontext.S b/sysdeps/unix/sysv/linux/i386/makecontext.S
147e83
index 106b865066d346b6..48643864b05568b0 100644
147e83
--- a/sysdeps/unix/sysv/linux/i386/makecontext.S
147e83
+++ b/sysdeps/unix/sysv/linux/i386/makecontext.S
147e83
@@ -83,6 +83,10 @@ ENTRY(__makecontext)
147e83
 #else
147e83
 	movl	$L(exitcode), (%edx)
147e83
 #endif
147e83
+	/* We need to terminate the FDE here instead of after ret because
147e83
+	   the unwinder looks at ra-1 for unwind information.  */
147e83
+	cfi_endproc
147e83
+
147e83
 	/* 'makecontext' returns no value.  */
147e83
 	ret
147e83
 
147e83
@@ -92,7 +96,6 @@ ENTRY(__makecontext)
147e83
 	   the context 'makecontext' manipulated at the time of the
147e83
 	   'makecontext' call.  If the pointer is NULL the process must
147e83
 	   terminate.  */
147e83
-	cfi_endproc
147e83
 L(exitcode):
147e83
 	/* This removes the parameters passed to the function given to
147e83
 	   'makecontext' from the stack.  EBX contains the number of