]> git.ipfire.org Git - thirdparty/linux.git/commit
MIPS: Implement ARCH_HAS_CC_CAN_LINK
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 9 Jan 2026 10:08:49 +0000 (11:08 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 9 Feb 2026 11:53:10 +0000 (12:53 +0100)
commit0bce126ab7e5719ead2f9144057b83bd285b1b23
tree48892d2f46ae0d6d5de4d6aa58200d87caa9614d
parente93bb4b76cfefb302534246e892c7667491cb8cc
MIPS: Implement ARCH_HAS_CC_CAN_LINK

The generic CC_CAN_LINK detection does not handle different byte orders
or ABIs. This may lead to userprogs which are not actually runnable on
the target kernel.

Use architecture-specific logic supporting byte orders instead.

Modern 64-bit toolchains default to a n32 libc, which are not
supported by all kernel configurations, as MIPS32_N32 is optional.
On 64-bit, test for a n32 ABI libc first and fall back to o64 and
o32 if necessary.

Link: https://lore.kernel.org/lkml/20260105100507-14db55e3-aa71-48bf-a6ac-33b186bd082f@linutronix.de/
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig