Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yao Zi and committed by
Nathan Chancellor
87abe931 72043cf7

+7
+7
arch/mips/boot/tools/relocs.h
··· 29 29 #define R_MIPS_PC26_S2 61 30 30 #endif 31 31 32 + /* 33 + * GNU extension that available in glibc only since 2023, not available on musl. 34 + */ 35 + #ifndef R_MIPS_PC32 36 + #define R_MIPS_PC32 248 37 + #endif 38 + 32 39 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 33 40 34 41 enum symtype {