[PATCH v2 0/2] Simplify kallsyms offset table generation
From: Ard Biesheuvel
Date: Fri Jan 16 2026 - 04:34:21 EST
From: Ard Biesheuvel <ardb@xxxxxxxxxx>
v2:
- implement minimal PC32 support for MIPS so it can tolerate the symbol
references emitted by kallsyms
- use signed decimal to represent the offset, so that symbols appearing
before _text can be represented correctly.
- add Kees's ack
Cc: Nathan Chancellor <nathan@xxxxxxxxxx>
Cc: Nicolas Schier <nsc@xxxxxxxxxx>
Cc: Kees Cook <kees@xxxxxxxxxx>
Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Cc: Kees Cook <kees@xxxxxxxxxx>
Cc: linux-kbuild@xxxxxxxxxxxxxxx
Cc: linux-hardening@xxxxxxxxxxxxxxx
Cc: linux-mips@xxxxxxxxxxxxxxx
Ard Biesheuvel (2):
mips: Add support for PC32 relocations in vmlinux
kallsyms: Get rid of kallsyms relative base
arch/mips/boot/tools/relocs.c | 2 +
arch/mips/include/asm/elf.h | 2 +
kernel/kallsyms.c | 6 +-
kernel/kallsyms_internal.h | 1 -
kernel/vmcore_info.c | 1 -
scripts/kallsyms.c | 64 ++++++--------------
scripts/link-vmlinux.sh | 4 ++
tools/perf/tests/vmlinux-kallsyms.c | 1 -
8 files changed, 29 insertions(+), 52 deletions(-)
--
2.52.0.457.g6b5491de43-goog