]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: fix backtrace to handle signal trampolines
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 20 Aug 2013 20:01:59 +0000 (15:01 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 31 Oct 2013 15:01:47 +0000 (10:01 -0500)
This patch fixes backtrace for PPC32 and PPC64 to correctly handle
signal trampolines. The 'debug/tst-backtrace6.c' also check for
SA_SIGINFO handling, where is triggers another vDSO symbols for PPC32.

ChangeLog

index bf25bd6640956eaa330f0b5466c421790e4fe071..16e258c8adbb8949267c6b3682850a4d6fa0edab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       [BZ #15867]
+       * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
+       trampoline stack frame information.
+       * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
+       (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
+       (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
+       (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
+       * sysdeps/unix/sysv/linux/powerpc/init-first.c
+       (_libc_vdso_platform_setup): Initialize the signal trampolines.
+       * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
+       sa_flags value.
+       * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
+       interrupting a syscall and set with option SA_SIGINFO.
+
 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #15531]