summaryrefslogtreecommitdiff
path: root/include/linux/elf.h
diff options
context:
space:
mode:
authorVignesh Balasubramanian <vigbalas@amd.com>2024-04-12 09:21:39 +0300
committerKees Cook <keescook@chromium.org>2024-04-15 21:02:51 +0300
commita9c3475dd67bd828d999e95d0ba985e7ac4cbbb7 (patch)
tree3e561f43c0d15026d1acde241a6d97db9908004d /include/linux/elf.h
parentc82389947d90c8b0dd206d9ef082191eb58df8fc (diff)
downloadlinux-a9c3475dd67bd828d999e95d0ba985e7ac4cbbb7.tar.xz
Replace macro "ARCH_HAVE_EXTRA_ELF_NOTES" with kconfig
"ARCH_HAVE_EXTRA_ELF_NOTES" enables an extra note section in the core dump. Kconfig variable is preferred over ARCH_HAVE_* macro. Co-developed-by: Jini Susan George <jinisusan.george@amd.com> Signed-off-by: Jini Susan George <jinisusan.george@amd.com> Signed-off-by: Vignesh Balasubramanian <vigbalas@amd.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20240412062138.1132841-2-vigbalas@amd.com Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/elf.h')
-rw-r--r--include/linux/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/elf.h b/include/linux/elf.h
index c9a46c4e183b..5c402788da19 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -65,7 +65,7 @@ extern Elf64_Dyn _DYNAMIC [];
struct file;
struct coredump_params;
-#ifndef ARCH_HAVE_EXTRA_ELF_NOTES
+#ifndef CONFIG_ARCH_HAVE_EXTRA_ELF_NOTES
static inline int elf_coredump_extra_notes_size(void) { return 0; }
static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; }
#else