]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tile: fix bug in CFI definitions for clone.S
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 11 May 2012 22:08:03 +0000 (18:08 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 14 May 2012 19:46:13 +0000 (15:46 -0400)
We were missing a critical cfi_def_cfa_offset call in .Lthread_start
which caused backtracing to get badly confused for threads.

ChangeLog.tile
sysdeps/unix/sysv/linux/tile/nptl/clone.S

index f2eb35a7f94162e52ddd219736b55eaeb7c7e253..ae048ddd346c5b70954f472897ed7d7eb40f85a3 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Add missing CFI.
+
 2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
 
        * sysdeps/tile/tls-macros.h: Fix buggy TLS_GD, etc., macros.
index eaa2fd65a52816e2ada7b339a71fd55358b2a699..de4fa136d3497a2e72da9a0c44ce00915c6b8129 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
 
@@ -167,6 +167,7 @@ ENTRY (__clone)
           in getpid().  Otherwise (if CLONE_VM isn't set), it's a
           fork-like clone, and we go ahead and write the cached values
           from the true system pid (retrieved via __NR_getpid syscall).  */
+       cfi_def_cfa_offset (FRAME_SIZE)
 #ifdef __tilegx__
        {
         moveli r0, hw1_last(CLONE_VM)