arm64: vdso32: Detect binutils support for dmb ishld
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Thu, 3 Oct 2019 17:48:34 +0000 (18:48 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Oct 2019 10:07:16 +0000 (11:07 +0100)
commit0df2c90eba60791148cee1823c0bf5fc66e3465c
tree36653009e0f5f743ba09a52bd6f6ac8cc5acfd47
parent37a5076098c17f40913c772b017ff8e48e449656
arm64: vdso32: Detect binutils support for dmb ishld

Older versions of binutils (prior to 2.24) do not support the "ISHLD"
option for memory barrier instructions, which leads to a build failure
when assembling the vdso32 library.

Add a compilation time mechanism that detects if binutils supports those
instructions and configure the kernel accordingly.

Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Will Deacon <will@kernel.org>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/vdso/compat_barrier.h
arch/arm64/kernel/vdso32/Makefile