• Vincenzo Frascino's avatar
    arm64: vdso: Add -fasynchronous-unwind-tables to cflags · 1578e5d0
    Vincenzo Frascino authored
    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: 28b1a824 ("arm64: vdso: Substitute gettimeofday() with C implementation")
    Cc: Will Deacon <will@kernel.org>
    Reported-by: default avatarSzabolcs Nagy <szabolcs.nagy@arm.com>
    Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    1578e5d0
Makefile 2.44 KB