0001 # For the pre-R6 code in arch/mips/vdso/vdso.h for locating
0002 # the base address of VDSO, the linker will emit a R_MIPS_PC32
0003 # relocation in binutils > 2.25 but it will fail with older versions
0004 # because that relocation is not supported for that symbol. As a result
0005 # of which we are forced to disable the VDSO symbols when building
0006 # with < 2.25 binutils on pre-R6 kernels. For more references on why we
0007 # can't use other methods to get the base address of VDSO please refer to
0008 # the comments on that file.
0009 #
0010 # GCC (at least up to version 9.2) appears to emit function calls that make use
0011 # of the GOT when targeting microMIPS, which we can't use in the VDSO due to
0012 # the lack of relocations. As such, we disable the VDSO for microMIPS builds.
0013
0014 config MIPS_LD_CAN_LINK_VDSO
0015 def_bool LD_VERSION >= 22500 || LD_IS_LLD
0016
0017 config MIPS_DISABLE_VDSO
0018 def_bool CPU_MICROMIPS || (!CPU_MIPSR6 && !MIPS_LD_CAN_LINK_VDSO)