libc/modlib: Make modlib selectable from defconfig

since bootloader may call modlib functions directly
to load elf firmware without binfmt, dlfcn or module.

BTW, this patch also remove the duplicated selecttion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2024-07-29 22:44:01 +08:00
committed by Xiang Xiao
parent c7455e7e8e
commit 5397a58731
3 changed files with 1 additions and 4 deletions

View File

@@ -50,9 +50,7 @@ config ELF
bool "Enable the ELF Binary Format"
default n
select BINFMT_LOADABLE
select LIBC_ARCH_ELF
select LIBC_MODLIB
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
---help---
Enable support for the ELF binary format. Default: n