]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mips: Add support for PC32 relocations in vmlinux
authorArd Biesheuvel <ardb@kernel.org>
Fri, 16 Jan 2026 09:34:01 +0000 (10:34 +0100)
committerNathan Chancellor <nathan@kernel.org>
Thu, 22 Jan 2026 22:58:17 +0000 (15:58 -0700)
commitff79d31eb536f6d87bcbc09287d54d5606bf6dbe
tree2754cdad696f811af1148667e420a035672a6e43
parent6eac13c876805f61bbb588eaff5ada0b6dc603e8
mips: Add support for PC32 relocations in vmlinux

MIPS supports PC32 relocations like most other architectures, which will
be used by kallsyms to make its symbol references visible to the linker.

Given that these are place-relative, they can be ignored by the 'relocs'
tool, just like other PC type relocations.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20260116093359.2442297-5-ardb+git@google.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
arch/mips/boot/tools/relocs.c
arch/mips/include/asm/elf.h