1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-05-28 16:21:30 +03:00
Stefan Liebler 478593e637 S390: Fix backtrace in vdso functions.
On s390, GDB fails to show the complete backtrace from within vdso functions.
The macro INTERNAL_VSYSCALL_CALL saves the return address in r14 to r10
before branching to the vdso function. The branch-instruction updates r14
in order to let the vdso function return. Then the original address in r14 is
restored from r10. Unfortunately, there are no cfi-rules and GDB fails.

Furthermore the call of the vdso function does not comply with the s390 ABI
as no stack-frame for the vdso-function is generated.

This patch removes the s390 specific macro INTERNAL_VSYSCALL_CALL
and the common implementation in sysdeps/unix/sysv/linux/sysdep-vdso.h is used.
Then the vdso function is called via function-pointer and GCC generates a
new stack-frame and emits all needed cfi-rules.

The defines CLOBBER_[0-6] are removed as they  were only used in macro
INTERNAL_VSYSCALL_CALL.

The macro INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK is not used on s390.
The only user is power. Thus it is removed from s390 sysdep.h.

ChangeLog:

	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
	(INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
	 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
	INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2017-12-04 16:40:13 +01:00
..
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-08-18 18:38:55 -03:00
2017-05-11 17:27:27 -03:00
2017-08-31 16:10:34 -03:00
2017-05-18 18:06:47 -03:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-05-18 18:06:47 -03:00
2017-08-31 16:10:34 -03:00
2017-08-17 16:50:35 -03:00
2017-08-17 16:50:35 -03:00
2017-08-22 14:25:03 -03:00
2017-05-03 10:36:01 -03:00
2017-05-09 14:05:09 +00:00
2017-08-18 10:31:16 -03:00
2017-10-01 15:54:10 -07:00
2017-03-09 15:22:06 +01:00
2017-03-09 15:22:06 +01:00
2017-03-28 12:29:27 -03:00
2017-03-28 12:29:27 -03:00
2017-03-09 15:22:06 +01:00
2017-11-27 17:14:29 +01:00
2017-11-27 17:14:29 +01:00
2017-08-18 10:53:47 -03:00
2017-10-01 15:54:10 -07:00