Thread (53 messages) 53 messages, 8 authors, 17d ago

Re: [PATCH v5 02/24] x86/elf, um/x86/elf: Move relocation constants to UAPI

From: Thomas Weißschuh <hidden>
Date: 2026-09-08 14:26:10
Also in: linux-kbuild, linux-mips, linux-mm, linux-riscv, linux-s390, linux-um, lkml, llvm, loongarch, rust-for-linux

On Tue, Sep 08, 2026 at 06:55:13AM -0700, Borislav Petkov wrote:
On Tue, Sep 08, 2026 at 08:33:36AM +0200, Thomas Weißschuh wrote:
quoted
These constants are useful for cross-platform userspace, for example to
process ELF files during kernel cross-compilation.

Move them from the kernel-private architecture-specific header to the UAPI.
Why UAPI?

Why not include/linux/ ?
The existing, generic ELF definitions are there.
The ELF stuff in include/linux/ is highly specific to Linux.

Also later in the patchset I want to expose the definitions to the
tools/ build. Exposing generic UAPI definitions to tools/ is a much
easier sell than include/linux/.


Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help