glibc/sysdeps/powerpc/powerpc64
Adhemerval Zanella 31073a53d8 powerpc: Fix signal handling in backtrace
Now with read consolidation which uses SYSCALL_CANCEL macro, a frame
pointer is created in the syscall code and this makes the powerpc
backtrace obtain a bogus entry for the signal handling patch.

It is because it does not setup the correct frame pointer register
(r1) based on the saved value from the kernel sigreturn.  It was not
failing because the syscall frame pointer register was the same one
for the next frame (the function that actually called the syscall).

This patch fixes it by setup the next stack frame using the saved
one by the kernel sigreturn.  It fixes tst-backtrace{5,6} from
the read consolidation patch.

Checked on powerpc-linux-gnu and powerpc64le-linux-gnu.

	* sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address): Use
	void* for argument type and use VDSO_SYMBOL macro.
	(is_sigtramp_address_rt): Likewise.
	(__backtrace): Setup expected frame pointer address for signal
	handling.
	* sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address): Use
	void* for argumetn type and use VSDO_SYMBOL macro.
	(__backtrace): Setup expected frame pointer address for signal
	handling.
2017-05-11 17:27:31 -03:00
..
970 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
a2 powerpc: refactor memcpy and mempcpy IFUNC. 2017-04-11 17:13:56 -03:00
bits Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
cell powerpc: refactor memcpy and mempcpy IFUNC. 2017-04-11 17:13:56 -03:00
fpu Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
multiarch powerpc: Fix strncat ifunc selection 2017-05-04 12:35:56 +05:30
power4 powerpc: refactor memcmp and memmove IFUNC. 2017-04-11 17:13:56 -03:00
power5 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
power5+ Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
power6 powerpc: refactor memcpy and mempcpy IFUNC. 2017-04-11 17:13:56 -03:00
power6x Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
power7 powerpc: refactor memcmp and memmove IFUNC. 2017-04-11 17:13:56 -03:00
power8 powerpc64: strrchr optimization for power8 2017-04-18 11:28:56 +05:30
power9 powerpc: refactor strcasecmp, strcmp, and strncmp IFUNC. 2017-04-11 17:13:54 -03:00
__longjmp-common.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
addmul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
backtrace.c powerpc: Fix signal handling in backtrace 2017-05-11 17:27:31 -03:00
bsd-_setjmp.S PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
bsd-setjmp.S PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
bzero.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
configure powerpc64 configure message 2015-03-25 15:45:36 +10:30
configure.ac powerpc64 configure message 2015-03-25 15:45:36 +10:30
crti.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
crtn.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-dtprocnum.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-irel.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-machine.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-machine.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
entry.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ffsll.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hp-timing.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Implies Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64" 2013-01-10 10:44:05 +01:00
lshift.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead 2014-07-03 08:38:25 -07:00
memcpy.S powerpc: refactor memcpy and mempcpy IFUNC. 2017-04-11 17:13:56 -03:00
memset.S powerpc: refactor memset IFUNC. 2017-04-11 17:13:55 -03:00
mul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ppc-mcount.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
register-dump.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-memset.c powerpc: Use generic memset for RTLD for ppc32/64 2010-09-29 12:21:14 -04:00
setjmp-common.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stackguard-macros.h PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64 2013-09-25 13:43:04 -05:00
start.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr.S powerpc: refactor strchr, strchrnul, and strrchr IFUNC. 2017-04-11 17:13:54 -03:00
strcmp.S powerpc: refactor strcasecmp, strcmp, and strncmp IFUNC. 2017-04-11 17:13:54 -03:00
strlen.S powerpc: refactor strnlen and strlen IFUNC. 2017-04-11 17:13:54 -03:00
strncmp.S powerpc: refactor strcasecmp, strcmp, and strncmp IFUNC. 2017-04-11 17:13:54 -03:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tls-macros.h powerpc: Remove HAVE_ASM_GLOBAL_DOT_NAME define 2015-03-11 09:01:05 -04:00
tst-audit.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00