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