Commit 034827c7 authored by James Hogan's avatar James Hogan Committed by Ralf Baechle

MIPS: Fix -mabi=64 build of

The native ABI vDSO linker script is built by preprocessing, with the native -mabi flag passed in to get the correct ABI
definitions. Unfortunately however certain toolchains choke on -mabi=64
without a corresponding compatible -march flag, for example:

cc1: error: ‘-march=mips32r2’ is not compatible with the selected ABI
scripts/ recipe for target 'arch/mips/vdso/' failed

Fix this by including ccflags-vdso in the KBUILD_CPPFLAGS for,
which includes the appropriate -march flag.

Fixes: ebb5e78c ("MIPS: Initial implementation of a VDSO")
Signed-off-by: default avatarJames Hogan <>
Reviewed-by: default avatarMaciej W. Rozycki <>
Cc: # 4.4.x-
Patchwork: default avatarRalf Baechle <>
parent cabca8c0
......@@ -82,7 +82,7 @@ obj-vdso := $(obj-vdso-y:%.o=$(obj)/%.o)
$(obj-vdso): KBUILD_CFLAGS := $(cflags-vdso) $(native-abi)
$(obj-vdso): KBUILD_AFLAGS := $(aflags-vdso) $(native-abi)
$(obj)/ KBUILD_CPPFLAGS := $(native-abi)
$(obj)/ KBUILD_CPPFLAGS := $(ccflags-vdso) $(native-abi)
$(obj)/ $(obj)/ $(obj-vdso) FORCE
$(call if_changed,vdsold)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment