]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
module.lds.S: Fix modules on 32-bit parisc architecture
authorHelge Deller <deller@gmx.de>
Tue, 7 Apr 2026 20:07:22 +0000 (22:07 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 17 Apr 2026 13:46:46 +0000 (15:46 +0200)
commit1221365f55281349da4f4ba41c05b57cd15f5c28
tree7cf8032792609e88901883b2adf1992eb367637b
parent3dce917902056ca7e46685f86f1f94b5953092e2
module.lds.S: Fix modules on 32-bit parisc architecture

On the 32-bit parisc architecture, we always used the
-ffunction-sections compiler option to tell the compiler to put the
functions into seperate text sections. This is necessary, otherwise
"big" kernel modules like ext4 or ipv6 fail to load because some
branches won't be able to reach their stubs.

Commit 1ba9f8979426 ("vmlinux.lds: Unify TEXT_MAIN, DATA_MAIN, and related
macros") broke this for parisc because all text sections will get
unconditionally merged now.

Introduce the ARCH_WANTS_MODULES_TEXT_SECTIONS config option which
avoids the text section merge for modules, and fix this issue by
enabling this option by default for 32-bit parisc.

Fixes: 1ba9f8979426 ("vmlinux.lds: Unify TEXT_MAIN, DATA_MAIN, and related macros")
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: stable@vger.kernel.org # v6.19+
Suggested-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/Kconfig
arch/parisc/Kconfig
scripts/module.lds.S