[PATCH v2 0/2] Simplify kallsyms offset table generation

Ard Biesheuvel posted 2 patches 3 weeks, 2 days ago
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(-)
[PATCH v2 0/2] Simplify kallsyms offset table generation
Posted by Ard Biesheuvel 3 weeks, 2 days ago
From: Ard Biesheuvel <ardb@kernel.org>

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@kernel.org>
Cc: Nicolas Schier <nsc@kernel.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Kees Cook <kees@kernel.org>
Cc: linux-kbuild@vger.kernel.org 
Cc: linux-hardening@vger.kernel.org
Cc: linux-mips@vger.kernel.org

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
Re: [PATCH v2 0/2] Simplify kallsyms offset table generation
Posted by Nathan Chancellor 1 week, 2 days ago
On Fri, 16 Jan 2026 10:34:00 +0100, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@kernel.org>
> 
> 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
> 
> [...]

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next

Thanks!

[1/2] mips: Add support for PC32 relocations in vmlinux
      (no commit info)
[2/2] kallsyms: Get rid of kallsyms relative base
      (no commit info)

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>