Blame SOURCES/glibc-rh731042.patch

4999bf
2011-08-08  Andreas Schwab  <schwab@redhat.com>
4999bf
4999bf
	* sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
4999bf
	stack.
4999bf
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
4999bf
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4999bf
4999bf
Index: glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
4999bf
===================================================================
4999bf
--- glibc-2.12-2-gc4ccff1.orig/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
4999bf
+++ glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S
4999bf
@@ -71,7 +71,9 @@ ENTRY(__pthread_enable_asynccancel)
4999bf
 
4999bf
 1:	ret
4999bf
 
4999bf
-3:	movq	$TCB_PTHREAD_CANCELED, %fs:RESULT
4999bf
+3:	subq	$8, %rsp
4999bf
+	cfi_adjust_cfa_offset(8)
4999bf
+	movq	$TCB_PTHREAD_CANCELED, %fs:RESULT
4999bf
 	lock
4999bf
 	orl	$TCB_EXITING_BITMASK, %fs:CANCELHANDLING
4999bf
 	movq	%fs:CLEANUP_JMP_BUF, %rdi
4999bf
Index: glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4999bf
===================================================================
4999bf
--- glibc-2.12-2-gc4ccff1.orig/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4999bf
+++ glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4999bf
@@ -63,9 +63,9 @@ __pthread_cond_timedwait:
4999bf
 	cfi_adjust_cfa_offset(8)
4999bf
 	cfi_rel_offset(%r15, 0)
4999bf
 #ifdef __ASSUME_FUTEX_CLOCK_REALTIME
4999bf
-# define FRAME_SIZE 32
4999bf
+# define FRAME_SIZE (32+8)
4999bf
 #else
4999bf
-# define FRAME_SIZE 48
4999bf
+# define FRAME_SIZE (48+8)
4999bf
 #endif
4999bf
 	subq	$FRAME_SIZE, %rsp
4999bf
 	cfi_adjust_cfa_offset(FRAME_SIZE)
4999bf
Index: glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4999bf
===================================================================
4999bf
--- glibc-2.12-2-gc4ccff1.orig/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4999bf
+++ glibc-2.12-2-gc4ccff1/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4999bf
@@ -45,7 +45,7 @@ __pthread_cond_wait:
4999bf
 	cfi_lsda(DW_EH_PE_udata4, .LexceptSTART)
4999bf
 #endif
4999bf
 
4999bf
-#define FRAME_SIZE 32
4999bf
+#define FRAME_SIZE (32+8)
4999bf
 	leaq	-FRAME_SIZE(%rsp), %rsp
4999bf
 	cfi_adjust_cfa_offset(FRAME_SIZE)
4999bf