[tip: timers/vdso] MIPS: VDSO: Gate microMIPS restriction on GCC version
From: tip-bot2 for Thomas Weißschuh
Date: Tue Jun 09 2026 - 11:26:57 EST
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: d051ede1adeeb8ccc9314bac00f33e013deedbf5
Gitweb: https://git.kernel.org/tip/d051ede1adeeb8ccc9314bac00f33e013deedbf5
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Thu, 21 May 2026 08:53:22 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 09 Jun 2026 17:02:10 +02:00
MIPS: VDSO: Gate microMIPS restriction on GCC version
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>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Link: https://patch.msgid.link/20260521-vdso-mips-kconfig-v1-8-2f79dcd6c78f@xxxxxxxxxxxxx
---
arch/mips/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 6463b0b..ccc66e3 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -3174,7 +3174,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"