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

From: Borislav Petkov

Date: Tue Sep 08 2026 - 12:20:38 EST


On Tue, Sep 08, 2026 at 04:26:00PM +0200, Thomas Weißschuh wrote:
> The existing, generic ELF definitions are there.
> The ELF stuff in include/linux/ is highly specific to Linux.

And putting them in UAPI casts them in stone. I wouldn't want to maintain them
forever if not necessary.

> 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/.

tools/ *copies* kernel headers on a "they're needed" basis. No need to put
anything in UAPI for that.

It's even written down: tools/include/uapi/README

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette