]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: VDSO: Gate microMIPS restriction on GCC version
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 21 May 2026 06:53:22 +0000 (08:53 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 9 Jun 2026 15:02:10 +0000 (17:02 +0200)
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@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Link: https://patch.msgid.link/20260521-vdso-mips-kconfig-v1-8-2f79dcd6c78f@linutronix.de
arch/mips/Kconfig

index 6463b0b1e165357e7e98e4a4dce9a6266afeb055..ccc66e3df1f98be67e6aaaa383c012176e6124e8 100644 (file)
@@ -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"