glibc/sysdeps/powerpc/powerpc64
Rogerio Alves 52b2a80fae powerpc64: Always restore TOC on longjmp [BZ #21895]
This patch changes longjmp to always restore the TOC pointer (r2 register)
to the caller frame on powerpc64 and powerpc64le.  This is related to bug
21895 that reports a situation where you have a static longjmp to a
shared object file.

	[BZ #21895]
	* sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
	restoring r2 in longjmp.
	* sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
	test list.
	Added rules to build test tst-setjmp-bug21895-static.
	Added module setjmp-bug21895 and rules to build a shared object from it.
	* sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
	* sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2018-07-16 16:08:41 -03:00
..
a2
be
bits
cell
fpu
le Fix powerpc64le build of nan-sign tests (bug 23303). 2018-06-18 11:27:51 +00:00
multiarch
power4
power5/fpu
power5+/fpu
power6
power6x/fpu
power7
power8
power9
__longjmp-common.S powerpc64: Always restore TOC on longjmp [BZ #21895] 2018-07-16 16:08:41 -03:00
__longjmp.S
addmul_1.S
atomic-machine.h
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
bzero.S
configure
configure.ac
crti.S Mark _init and _fini as hidden [BZ #23145] 2018-06-08 10:28:52 -07:00
crtn.S
dl-dtprocnum.h
dl-irel.h
dl-machine.c
dl-machine.h
dl-trampoline.S
entry.h
ffsll.c
hp-timing.h
Implies
lshift.S
Makefile powerpc64: Always restore TOC on longjmp [BZ #21895] 2018-07-16 16:08:41 -03:00
memcpy.S
memset.S
mul_1.S
ppc-mcount.S
register-dump.h
rtld-memset.c
setjmp-bug21895.c powerpc64: Always restore TOC on longjmp [BZ #21895] 2018-07-16 16:08:41 -03:00
setjmp-common.S
setjmp.S
stackguard-macros.h
start.S
strchr.S
strcmp.S
strlen.S
strncmp.S
submul_1.S
sysdep.h
tls-macros.h
tst-audit.h
tst-setjmp-bug21895-static.c powerpc64: Always restore TOC on longjmp [BZ #21895] 2018-07-16 16:08:41 -03:00