From nobody Fri Dec 19 04:52:22 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 153031AF0DD for ; Wed, 4 Dec 2024 10:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733308180; cv=none; b=QSwQ3yShuPkmyvD0Po6iJrgyhl6kXkVxqwKb+uw4FJUIkHRYvmXn8bY7Ov4v6N9dHgVfxH+lbpc6QAoT8cPYj4EWsnXa0B6qy7U1qIsdYzQIkMblo0HVNP3pMcCoYpQkcsTcz+JiWdZc9e3ESlAPAenuEKqySRmcCf406u+seRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733308180; c=relaxed/simple; bh=0r10L0YCyc4mHIa4LmRwV2eFEw40ha9ErMc2w48Ije4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Px98Q7V5TRjNyVNf7BOazMGky6XaWsza/DonR3csN6SLdiqF5lZH+uvsvB2wS5hZkZdaes53Csy1fv1QC9nZA751ekJ3IWHcovZn84sleJN/GXApXg4o0h5eB5gaP0LXF01ElxT7NvxYw/De1fQhgiP37IeuFHeFy7DBt6+JtRs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kWS6xxv/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kWS6xxv/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0537BC4CEDD; Wed, 4 Dec 2024 10:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733308179; bh=0r10L0YCyc4mHIa4LmRwV2eFEw40ha9ErMc2w48Ije4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kWS6xxv/D0II+x/uHDJV7zBfhSB+xp/+0+xQ/BEmIWa9fFF62990uvJMieEDHJXcs Nyeolhp8EOa45Xdacjp83BWNh+O1yzDhIAbTFx+39LAEUl7o5tTUjdThuHEgNy2lPK a943Iw2EhFDWSdu+hvpEUF/FiZF+3gS13QZf6SEzE61K40gQxHsd6R3J89512Hghoz e4+PHpEJtpmIr6L1htv/GLv0ZRqajbPALtMlf+O9ZTA5ilOMv76imf/kj66AOfIjj1 uqd1/gy5GnP2MuUG6Dx1wWBbGlcSCbVNy17WsprzBzXHYoWYVkRgPbNApr5giK6qHU EFAIH4Di5Hutw== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Aaro Koskinen , Andrew Lunn , Ard Biesheuvel , Daniel Mack , Gregory Clement , Haojian Zhuang , "Jeremy J. Peper" , Kristoffer Ericson , Krzysztof Kozlowski , Linus Walleij , Mark Brown , Ralph Siemsen , Robert Jarzmik , Russell King , Sebastian Hesselbarth , Tony Lindgren Subject: [PATCH 02/15] ARM: limit OABI support to StrongARM CPUs Date: Wed, 4 Dec 2024 11:28:51 +0100 Message-Id: <20241204102904.1863796-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241204102904.1863796-1-arnd@kernel.org> References: <20241204102904.1863796-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann As discussed on the mailing lists, there is no way to build OABI userspace binaries any more since gcc-4.8, and now support is also getting dropped in binutils, which will make it impossible to build pure OABI kernels at some point in the future. I found no evidence of anyone still sing OABI userspace on embedded systems that keep getting kernel updates, but there are a few desktop-class machines that date back to the 1990s using Intel StrongARM processors that were supported by old versions of Debian, Red Hat or the official Corel Netwinder distribution. Add a much stricter Kconfig dependency for both native OABI and OABI_COMPAT enabled kernels, only allowing either of them to be selected when building a kernel that targets a StrongARM based machine. Link: https://lore.kernel.org/lkml/2831c5a6-cfbf-4fe0-b51c-0396e5b0aeb7@app= .fastmail.com/ Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij --- arch/arm/Kconfig | 14 +++++++------- arch/arm/configs/am200epdkit_defconfig | 1 - arch/arm/configs/axm55xx_defconfig | 1 - arch/arm/configs/footbridge_defconfig | 2 +- arch/arm/configs/neponset_defconfig | 2 +- arch/arm/configs/versatile_defconfig | 1 - 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f8f127650ace..54f5cc12dea4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1161,8 +1161,7 @@ config ARM_PATCH_IDIV code to do integer division. =20 config AEABI - bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \ - !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG + bool "Use the ARM EABI to compile the kernel" if CPU_SA110 || CPU_SA1100 default y help The Arm EABI is the default ABI on all modern Linux @@ -1172,9 +1171,13 @@ config AEABI Everyone should enable this, as support for OABI user space was dropped in gcc-4.8 and most distributions after ca. 2013. =20 + Support for OABI mode will be removed from the kernel + once Intel StrongARM CPUs are phased out. + config OABI_COMPAT bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)" depends on AEABI && !THUMB2_KERNEL + depends on CPU_SA110 || CPU_SA1100 help This option preserves the old syscall interface along with the new (ARM EABI) one. It also provides a compatibility layer to @@ -1187,11 +1190,8 @@ config OABI_COMPAT selected, since there is no way yet to sensibly distinguish between calling conventions during filtering. =20 - If you know you'll be using only pure EABI user space then you - can say N here. If this option is not selected and you attempt - to execute a legacy ABI binary then the result will be - UNPREDICTABLE (in fact it can be predicted that it won't work - at all). If in doubt say N. + Support for OABI_COMPAT will be removed from the kernel + once Intel StrongARM CPUs are phased out. =20 config ARCH_SELECT_MEMORY_MODEL def_bool y diff --git a/arch/arm/configs/am200epdkit_defconfig b/arch/arm/configs/am20= 0epdkit_defconfig index 22397d45f4a0..55c5c08a5f96 100644 --- a/arch/arm/configs/am200epdkit_defconfig +++ b/arch/arm/configs/am200epdkit_defconfig @@ -7,7 +7,6 @@ CONFIG_EXPERT=3Dy # CONFIG_ARCH_MULTI_V7 is not set CONFIG_ARCH_PXA=3Dy CONFIG_ARCH_GUMSTIX=3Dy -# CONFIG_OABI_COMPAT is not set CONFIG_CMDLINE=3D"console=3DttyS0,115200n8 root=3D1f01 rootfstype=3Djffs2" CONFIG_MODULES=3Dy CONFIG_MODULE_UNLOAD=3Dy diff --git a/arch/arm/configs/axm55xx_defconfig b/arch/arm/configs/axm55xx_= defconfig index 39b06d59d87a..9d14b987ee94 100644 --- a/arch/arm/configs/axm55xx_defconfig +++ b/arch/arm/configs/axm55xx_defconfig @@ -38,7 +38,6 @@ CONFIG_PCIE_AXXIA=3Dy CONFIG_SMP=3Dy CONFIG_NR_CPUS=3D16 CONFIG_HOTPLUG_CPU=3Dy -CONFIG_OABI_COMPAT=3Dy CONFIG_HIGHMEM=3Dy CONFIG_ARM_APPENDED_DTB=3Dy CONFIG_ARM_ATAG_DTB_COMPAT=3Dy diff --git a/arch/arm/configs/footbridge_defconfig b/arch/arm/configs/footb= ridge_defconfig index 589b7b1df8c6..e8bf9847d35d 100644 --- a/arch/arm/configs/footbridge_defconfig +++ b/arch/arm/configs/footbridge_defconfig @@ -9,9 +9,9 @@ CONFIG_ARCH_MULTI_V4=3Dy CONFIG_ARCH_FOOTBRIDGE=3Dy CONFIG_ARCH_EBSA285_HOST=3Dy CONFIG_ARCH_NETWINDER=3Dy +# CONFIG_AEABI is not set CONFIG_FPE_NWFPE=3Dy CONFIG_FPE_NWFPE_XP=3Dy -# CONFIG_AEABI is not set CONFIG_MODULES=3Dy CONFIG_PARTITION_ADVANCED=3Dy CONFIG_ACORN_PARTITION=3Dy diff --git a/arch/arm/configs/neponset_defconfig b/arch/arm/configs/neponse= t_defconfig index a8833b2ce335..7a7b6a896f85 100644 --- a/arch/arm/configs/neponset_defconfig +++ b/arch/arm/configs/neponset_defconfig @@ -6,12 +6,12 @@ CONFIG_ARCH_MULTI_V4=3Dy CONFIG_ARCH_SA1100=3Dy CONFIG_SA1100_ASSABET=3Dy CONFIG_ASSABET_NEPONSET=3Dy +# CONFIG_AEABI is not set CONFIG_ZBOOT_ROM_TEXT=3D0x80000 CONFIG_ZBOOT_ROM_BSS=3D0xc1000000 CONFIG_ZBOOT_ROM=3Dy CONFIG_CMDLINE=3D"console=3DttySA0,38400n8 cpufreq=3D221200 rw root=3D/dev= /mtdblock2 mtdparts=3Dsa1100:512K(boot),1M(kernel),2560K(initrd),4M(root) l= oad_ramdisk=3D1 prompt_ramdisk=3D0 mem=3D32M noinitrd initrd=3D0xc0800000,3= M" CONFIG_FPE_NWFPE=3Dy -# CONFIG_AEABI is not set CONFIG_PM=3Dy CONFIG_MODULES=3Dy CONFIG_MODULE_UNLOAD=3Dy diff --git a/arch/arm/configs/versatile_defconfig b/arch/arm/configs/versat= ile_defconfig index 8e89debb5a5b..bb9eb9ccbbde 100644 --- a/arch/arm/configs/versatile_defconfig +++ b/arch/arm/configs/versatile_defconfig @@ -6,7 +6,6 @@ CONFIG_LOG_BUF_SHIFT=3D14 CONFIG_BLK_DEV_INITRD=3Dy # CONFIG_ARCH_MULTI_V7 is not set CONFIG_ARCH_VERSATILE=3Dy -CONFIG_OABI_COMPAT=3Dy CONFIG_CMDLINE=3D"root=3D1f03 mem=3D32M" CONFIG_FPE_NWFPE=3Dy CONFIG_VFP=3Dy --=20 2.39.5