xref: /kernel/linux/linux-5.10/arch/mips/vdso/Kconfig (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci# For the pre-R6 code in arch/mips/vdso/vdso.h for locating
28c2ecf20Sopenharmony_ci# the base address of VDSO, the linker will emit a R_MIPS_PC32
38c2ecf20Sopenharmony_ci# relocation in binutils > 2.25 but it will fail with older versions
48c2ecf20Sopenharmony_ci# because that relocation is not supported for that symbol. As a result
58c2ecf20Sopenharmony_ci# of which we are forced to disable the VDSO symbols when building
68c2ecf20Sopenharmony_ci# with < 2.25 binutils on pre-R6 kernels. For more references on why we
78c2ecf20Sopenharmony_ci# can't use other methods to get the base address of VDSO please refer to
88c2ecf20Sopenharmony_ci# the comments on that file.
98c2ecf20Sopenharmony_ci#
108c2ecf20Sopenharmony_ci# GCC (at least up to version 9.2) appears to emit function calls that make use
118c2ecf20Sopenharmony_ci# of the GOT when targeting microMIPS, which we can't use in the VDSO due to
128c2ecf20Sopenharmony_ci# the lack of relocations. As such, we disable the VDSO for microMIPS builds.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig MIPS_LD_CAN_LINK_VDSO
158c2ecf20Sopenharmony_ci	def_bool LD_VERSION >= 225000000 || LD_IS_LLD
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciconfig MIPS_DISABLE_VDSO
188c2ecf20Sopenharmony_ci	def_bool CPU_MICROMIPS || (!CPU_MIPSR6 && !MIPS_LD_CAN_LINK_VDSO)
19