xref: /openbmc/linux/arch/mips/vdso/Kconfig (revision b285d2ae)
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# GCC (at least up to version 9.2) appears to emit function calls that make use
11# of the GOT when targeting microMIPS, which we can't use in the VDSO due to
12# the lack of relocations. As such, we disable the VDSO for microMIPS builds.
13
14config MIPS_LD_CAN_LINK_VDSO
15	def_bool LD_VERSION >= 225000000 || LD_IS_LLD
16
17config MIPS_DISABLE_VDSO
18	def_bool CPU_MICROMIPS || (!CPU_MIPSR6 && !MIPS_LD_CAN_LINK_VDSO)
19