ELF: Add ELF program property parsing support
authorDave Martin <Dave.Martin@arm.com>
Mon, 16 Mar 2020 16:50:44 +0000 (16:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Mar 2020 17:19:48 +0000 (17:19 +0000)
commit00e19ceec80b03a43f626f891fcc53e57919f1b3
tree08bb27b79c08e883803f36eae038ca2c28dc7aec
parentdb751e309ff05461a0c8e114b1238d7a69cc1f18
ELF: Add ELF program property parsing support

ELF program properties will be needed for detecting whether to
enable optional architecture or ABI features for a new ELF process.

For now, there are no generic properties that we care about, so do
nothing unless CONFIG_ARCH_USE_GNU_PROPERTY=y.

Otherwise, the presence of properties using the PT_PROGRAM_PROPERTY
phdrs entry (if any), and notify each property to the arch code.

For now, the added code is not used.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
fs/binfmt_elf.c
fs/compat_binfmt_elf.c
include/linux/elf.h
include/uapi/linux/elf.h