yann@2438: revert cfi additions to clone on i386/x86_64 to workaround problems in yann@2438: gcc's unwinder code. this is not a bug in glibc, it triggers problems yann@2438: elsewhere. this cfi code does not gain us a whole lot anyways. yann@2438: yann@2438: http://gcc.gnu.org/ml/gcc/2006-12/msg00293.html yann@2438: yann@2438: Index: sysdeps/unix/sysv/linux/i386/clone.S yann@2438: =================================================================== yann@2438: RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/clone.S,v yann@2438: retrieving revision 1.27 yann@2438: retrieving revision 1.26 yann@2438: diff -u -p -r1.27 -r1.26 yann@2438: yann@2438: diff -durN glibc-2.13.orig/sysdeps/unix/sysv/linux/i386/clone.S glibc-2.13/sysdeps/unix/sysv/linux/i386/clone.S yann@2438: --- glibc-2.13.orig/sysdeps/unix/sysv/linux/i386/clone.S 2006-12-04 00:12:36.000000000 +0100 yann@2438: +++ glibc-2.13/sysdeps/unix/sysv/linux/i386/clone.S 2009-11-13 00:49:45.000000000 +0100 yann@2438: @@ -120,9 +120,6 @@ yann@2438: ret yann@2438: yann@2438: L(thread_start): yann@2438: - cfi_startproc; yann@2438: - /* Clearing frame pointer is insufficient, use CFI. */ yann@2438: - cfi_undefined (eip); yann@2438: /* Note: %esi is zero. */ yann@2438: movl %esi,%ebp /* terminate the stack frame */ yann@2438: #ifdef RESET_PID yann@2438: @@ -155,7 +152,6 @@ yann@2438: jmp L(haspid) yann@2438: .previous yann@2438: #endif yann@2438: - cfi_endproc; yann@2438: yann@2438: cfi_startproc yann@2438: PSEUDO_END (BP_SYM (__clone)) yann@2438: diff -durN glibc-2.13.orig/sysdeps/unix/sysv/linux/x86_64/clone.S glibc-2.13/sysdeps/unix/sysv/linux/x86_64/clone.S yann@2438: --- glibc-2.13.orig/sysdeps/unix/sysv/linux/x86_64/clone.S 2006-12-04 00:12:36.000000000 +0100 yann@2438: +++ glibc-2.13/sysdeps/unix/sysv/linux/x86_64/clone.S 2009-11-13 00:49:45.000000000 +0100 yann@2438: @@ -89,9 +89,6 @@ yann@2438: ret yann@2438: yann@2438: L(thread_start): yann@2438: - cfi_startproc; yann@2438: - /* Clearing frame pointer is insufficient, use CFI. */ yann@2438: - cfi_undefined (rip); yann@2438: /* Clear the frame pointer. The ABI suggests this be done, to mark yann@2438: the outermost frame obviously. */ yann@2438: xorl %ebp, %ebp yann@2438: @@ -116,7 +113,6 @@ yann@2438: /* Call exit with return value from function call. */ yann@2438: movq %rax, %rdi yann@2438: call HIDDEN_JUMPTARGET (_exit) yann@2438: - cfi_endproc; yann@2438: yann@2438: cfi_startproc; yann@2438: PSEUDO_END (BP_SYM (__clone))