[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2512310212490.14570@angie.orcam.me.uk>
Date: Wed, 31 Dec 2025 02:33:40 +0000 (GMT)
From: "Maciej W. Rozycki" <macro@...am.me.uk>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] MIPS: Implement ARCH_HAS_CC_CAN_LINK
On Mon, 22 Dec 2025, Thomas Weißschuh wrote:
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index b88b97139fa8..316e3c29c431 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -3126,6 +3127,20 @@ config CC_HAS_MNO_BRANCH_LIKELY
> config CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
> def_bool y if CC_IS_CLANG
>
> +config ARCH_CC_CAN_LINK
> + bool
> + default $(cc_can_link_user,-m64 -EL) if 64BIT && CPU_LITTLE_ENDIAN
> + default $(cc_can_link_user,-m64 -EB) if 64BIT && CPU_BIG_ENDIAN
> + default $(cc_can_link_user,-m32 -EL) if CPU_LITTLE_ENDIAN
> + default $(cc_can_link_user,-m32 -EB) if CPU_BIG_ENDIAN
> +
> +config ARCH_USERFLAGS
> + string
> + default "-m64 -EL" if 64BIT && CPU_LITTLE_ENDIAN
> + default "-m64 -EB" if 64BIT && CPU_BIG_ENDIAN
> + default "-m32 -EL" if CPU_LITTLE_ENDIAN
> + default "-m32 -EB" if CPU_BIG_ENDIAN
There are no `-m32'/`-m64' options with MIPS GCC; where did you get them
from and how did you verify your change? Did you mean `-mabi=...' by any
chance? Also does the n32 ABI have to be factored in, since IIUC this
stuff is about user programs?
Maciej
Powered by blists - more mailing lists