mirror of git://sourceware.org/git/glibc.git
tile: fix bug in CFI definitions for clone.S
We were missing a critical cfi_def_cfa_offset call in .Lthread_start which caused backtracing to get badly confused for threads.
This commit is contained in:
parent
8daa704ea4
commit
024bb7b4a2
|
@ -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>
|
2012-05-12 Chris Metcalf <cmetcalf@tilera.com>
|
||||||
|
|
||||||
* sysdeps/tile/tls-macros.h: Fix buggy TLS_GD, etc., macros.
|
* sysdeps/tile/tls-macros.h: Fix buggy TLS_GD, etc., macros.
|
||||||
|
|
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
|
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
|
in getpid(). Otherwise (if CLONE_VM isn't set), it's a
|
||||||
fork-like clone, and we go ahead and write the cached values
|
fork-like clone, and we go ahead and write the cached values
|
||||||
from the true system pid (retrieved via __NR_getpid syscall). */
|
from the true system pid (retrieved via __NR_getpid syscall). */
|
||||||
|
cfi_def_cfa_offset (FRAME_SIZE)
|
||||||
#ifdef __tilegx__
|
#ifdef __tilegx__
|
||||||
{
|
{
|
||||||
moveli r0, hw1_last(CLONE_VM)
|
moveli r0, hw1_last(CLONE_VM)
|
||||||
|
|
Loading…
Reference in New Issue