]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: tools: relocs: Ship a definition of R_MIPS_PC32
authorYao Zi <me@ziyao.cc>
Mon, 2 Feb 2026 04:16:10 +0000 (04:16 +0000)
committerNathan Chancellor <nathan@kernel.org>
Tue, 3 Feb 2026 04:56:42 +0000 (21:56 -0700)
commit87abe931fbc349d13407a3dd61e6e9a899389141
tree59412a570f4b6b38e86ca58b99bee29685c2c022
parent72043cf7f100cbd031981a726e31f4b20935902c
MIPS: tools: relocs: Ship a definition of R_MIPS_PC32

R_MIPS_PC32 is a GNU extension, its definition is available in glibc
only since 2.39 (released in 2024), and not available in musl libc yet.
Provide our own definition for R_MIPS_PC32 and use it if necessary to
fix relocs tool building on musl and older glibc systems.

Fixes: ff79d31eb536 ("mips: Add support for PC32 relocations in vmlinux")
Signed-off-by: Yao Zi <me@ziyao.cc>
Link: https://patch.msgid.link/20260202041610.61389-1-me@ziyao.cc
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
arch/mips/boot/tools/relocs.h