Vincenzo Frascino 1578e5d031 arm64: vdso: Add -fasynchronous-unwind-tables to cflags
On arm64 linux gcc uses -fasynchronous-unwind-tables -funwind-tables
by default since gcc-8, so now the de facto platform ABI is to allow
unwinding from async signal handlers.

However on bare metal targets (aarch64-none-elf), and on old gcc,
async and sync unwind tables are not enabled by default to avoid
runtime memory costs.

This means if linux is built with a baremetal toolchain the vdso.so
may not have unwind tables which breaks the gcc platform ABI guarantee
in userspace.

Add -fasynchronous-unwind-tables explicitly to the vgettimeofday.o
cflags to address the ABI change.

Fixes: 28b1a824a4f4 ("arm64: vdso: Substitute gettimeofday() with C implementation")
Cc: Will Deacon <will@kernel.org>
Reported-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2020-04-30 18:35:32 +01:00
..
2020-04-03 13:12:26 -07:00
2019-07-08 09:54:55 -07:00
2019-11-06 14:17:36 +00:00
2019-11-25 19:40:40 -08:00
2019-07-08 09:54:55 -07:00
2020-02-11 09:47:01 +00:00
2019-11-06 14:17:35 +00:00
2019-07-15 20:44:49 -07:00
2020-03-31 10:05:01 -07:00
2019-04-23 18:01:57 +01:00
2020-03-31 10:05:01 -07:00
2019-12-08 14:37:32 +01:00
2019-12-06 14:18:01 -08:00