[PATCH 8/9] MIPS: VDSO: Gate microMIPS restriction on GCC version
From: Thomas Weißschuh
Date: Thu May 21 2026 - 02:57:27 EST
As explained in the comment, the problematic GOT references are only
emitted by old versions of GCC.
Limit the restriction to those compilers.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
arch/mips/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 8a3bd431b16a..d545a50c4bd5 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -3175,7 +3175,7 @@ config MIPS_GENERIC_GETTIMEOFDAY
# GCC (at least up to version 9.2) appears to emit function calls that make use
# of the GOT when targeting microMIPS, which we can't use in the VDSO due to
# the lack of relocations. As such, we disable the VDSO for microMIPS builds.
- depends on !CPU_MICROMIPS
+ depends on !(CPU_MICROMIPS && CC_IS_GCC && GCC_VERSION < 90300)
menu "CPU Power Management"
--
2.54.0