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

From: Thomas Weißschuh

Date: Tue Sep 08 2026 - 12:04:13 EST


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:
> > 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