mirror-linux/arch/parisc
Helge Deller 1221365f55 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 1ba9f89794 ("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: 1ba9f89794 ("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>
2026-04-17 15:46:46 +02:00
..
boot Kbuild/Kconfig updates for 7.1 2026-04-14 09:18:40 -07:00
configs Final updates, notably: 2026-04-12 09:17:42 -07:00
include parisc: Include 32-bit VDSO only when building for 32-bit or compat mode 2026-04-17 15:46:45 +02:00
kernel parisc: Allow to build without VDSO32 2026-04-17 15:46:45 +02:00
lib parisc: Drop ip_fast_csum() inline assembly implementation 2026-04-17 11:32:46 +02:00
math-emu parisc: Fix double SIGFPE crash 2025-05-04 17:30:03 +02:00
mm arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
net Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
video arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
Kbuild parisc: Wire up eBPF JIT compiler 2023-08-22 10:24:47 +02:00
Kconfig module.lds.S: Fix modules on 32-bit parisc architecture 2026-04-17 15:46:46 +02:00
Kconfig.debug parisc: Use page table locks only if DEBUG_KERNEL is enabled 2023-08-20 20:23:46 +02:00
Makefile parisc: Allow to build without VDSO32 2026-04-17 15:46:45 +02:00
defpalo.conf
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00