]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: Add -fasynchronous-unwind-tables to cflags
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Wed, 29 Apr 2020 15:10:50 +0000 (16:10 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 30 Apr 2020 17:35:32 +0000 (18:35 +0100)
commit3175e44686ae39ecb53ea2afc412a8d825982405
tree3c56c3777bd97e3619d23a6374081d4d6c52227b
parenta3c98f842c1888b4df27e091ed5a315b6f7c1aa9
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: e124bab05b5a ("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>
arch/arm64/kernel/vdso/Makefile