arch: select LIBC_ARCH_ELF when using COREDUMP

Coredump doens't need CONFIG_ELF to be enabled, but need elf.h to include correct elf32.h or elf64.h.
Select LIBC_ARCH_ELF in COREDUMP to allow LIBC_ARCH_ELF_64BIT to be
defined correctly.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2025-01-22 14:00:31 +08:00 committed by archer
parent f6b9a8f577
commit 1ab1a6eaf3

View file

@ -2011,6 +2011,7 @@ config ASSERT_PAUSE_CPU_TIMEOUT
config COREDUMP
bool "Coredump support"
depends on ARCH_HAVE_TCBINFO
select LIBC_ARCH_ELF
default n
---help---
Generate ELF core dump to provide information about the CPU state and the