Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: remove CONFIG_MIPS_LD_CAN_LINK_VDSO

Given commit e4412739472b ("Documentation: raise minimum supported
version of binutils to 2.25"), CONFIG_MIPS_LD_CAN_LINK_VDSO is always
'y'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Masahiro Yamada and committed by
Thomas Bogendoerfer
f048158c b74cc639

+1 -16
+1 -13
arch/mips/vdso/Kconfig
··· 1 - # For the pre-R6 code in arch/mips/vdso/vdso.h for locating 2 - # the base address of VDSO, the linker will emit a R_MIPS_PC32 3 - # relocation in binutils > 2.25 but it will fail with older versions 4 - # because that relocation is not supported for that symbol. As a result 5 - # of which we are forced to disable the VDSO symbols when building 6 - # with < 2.25 binutils on pre-R6 kernels. For more references on why we 7 - # can't use other methods to get the base address of VDSO please refer to 8 - # the comments on that file. 9 - # 10 1 # GCC (at least up to version 9.2) appears to emit function calls that make use 11 2 # of the GOT when targeting microMIPS, which we can't use in the VDSO due to 12 3 # the lack of relocations. As such, we disable the VDSO for microMIPS builds. 13 4 14 - config MIPS_LD_CAN_LINK_VDSO 15 - def_bool LD_VERSION >= 22500 || LD_IS_LLD 16 - 17 5 config MIPS_DISABLE_VDSO 18 - def_bool CPU_MICROMIPS || (!CPU_MIPSR6 && !MIPS_LD_CAN_LINK_VDSO) 6 + def_bool CPU_MICROMIPS
-3
arch/mips/vdso/Makefile
··· 52 52 CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) 53 53 54 54 ifdef CONFIG_MIPS_DISABLE_VDSO 55 - ifndef CONFIG_MIPS_LD_CAN_LINK_VDSO 56 - $(warning MIPS VDSO requires binutils >= 2.25) 57 - endif 58 55 obj-vdso-y := $(filter-out vgettimeofday.o, $(obj-vdso-y)) 59 56 endif 60 57