s390/vdso: Generate unwind information for C modules

[ Upstream commit 10f7052536 ]

GDB fails to unwind vDSO functions with error message "PC not saved",
for instance when stepping through gettimeofday().

Add -fasynchronous-unwind-tables to CFLAGS to generate .eh_frame
DWARF unwind information for the vDSO C modules.

Fixes: 4bff8cb545 ("s390: convert to GENERIC_VDSO")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jens Remus 2024-04-29 17:02:52 +02:00 • committed by Greg Kroah-Hartman
commit a422869153
2 changed files with 4 additions and 2 deletions