]> www.infradead.org Git - users/jedix/linux-maple.git/commit
elf: add remaining SHF_ flag macros
authorTimur Tabi <ttabi@nvidia.com>
Fri, 7 Mar 2025 17:14:17 +0000 (11:14 -0600)
committerKees Cook <kees@kernel.org>
Fri, 7 Mar 2025 20:20:28 +0000 (12:20 -0800)
commitb0db1ed17645b53993bae3dd2c4be7013600084f
tree34e2d91debf425087e32e98b838a7d223d2a5d03
parentcc9554e662a3b5a13f514cfcced54ac263c07094
elf: add remaining SHF_ flag macros

Add the remaining SHF_ flags, as listed in the "Executable and
Linkable Format" Wikipedia page and the System V Application Binary
Interface[1]. This allows drivers to load and parse ELF images that use
some of those flags.

In particular, an upcoming change to the Nouveau GPU driver will
use some of the flags.

Link: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.sheader.html#sh_flags
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Link: https://lore.kernel.org/r/20250307171417.267488-1-ttabi@nvidia.com
Signed-off-by: Kees Cook <kees@kernel.org>
include/uapi/linux/elf.h