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