[PATCH] s390: Implement ARCH_HAS_CC_CAN_LINK

Thomas Weißschuh posted 1 patch 1 month, 2 weeks ago
arch/s390/Kconfig | 9 +++++++++
1 file changed, 9 insertions(+)
Re: [PATCH] s390: Implement ARCH_HAS_CC_CAN_LINK
Posted by Heiko Carstens 1 month, 2 weeks ago
On Mon, Dec 22, 2025 at 09:28:17AM +0100, Thomas Weißschuh wrote:
> The generic CC_CAN_LINK detection relies on -m32/-m64 compiler flags.
> s390 toolchains use -m31 instead but that is not supported in the
> kernel.

Some s390 toolchains default to -m31, depending on how they are
built. Actually I'm only aware of a single one. But given that this
one is used all over the place for cross builds it is important
enough.

> Make the logic easier to understand and allow the simplification of the
> generic CC_CAN_LINK by using a tailored implementation.
> 
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> ---
>  arch/s390/Kconfig | 9 +++++++++
>  1 file changed, 9 insertions(+)

Applied, and scheduled for the next merge window. Thanks!