diff --git a/libs/libc/dllfcn/Kconfig b/libs/libc/dllfcn/Kconfig index 5f52993d035..ff4bce968ca 100644 --- a/libs/libc/dllfcn/Kconfig +++ b/libs/libc/dllfcn/Kconfig @@ -8,8 +8,7 @@ config LIBC_DLLFCN bool "Shared library support" default n - select LIBC_ARCH_ELF - select LIBC_MODLIB if !BUILD_KERNEL + select LIBC_MODLIB if !BUILD_FLAT select MODULE if BUILD_FLAT depends on EXPERIMENTAL || !BUILD_KERNEL ---help--- diff --git a/libs/libc/modlib/Kconfig b/libs/libc/modlib/Kconfig index 694580b13c5..a79b02fb3b8 100644 --- a/libs/libc/modlib/Kconfig +++ b/libs/libc/modlib/Kconfig @@ -6,6 +6,7 @@ config LIBC_MODLIB bool default n + select LIBC_ARCH_ELF menu "Module library configuration" depends on LIBC_MODLIB @@ -68,11 +69,13 @@ if MODLIB_HAVE_SYMTAB config MODLIB_SYMTAB_ARRAY string "Symbol table name used by dlsym" - default "g_mod_symtab" + default "g_mod_symtab" if !EXECFUNCS_HAVE_SYMTAB + default EXECFUNCS_SYMTAB_ARRAY if EXECFUNCS_HAVE_SYMTAB config MODLIB_NSYMBOLS_VAR string "Name of variable holding the number of symbols" - default "g_mod_nsymbols" + default "g_mod_nsymbols" if !EXECFUNCS_HAVE_SYMTAB + default EXECFUNCS_NSYMBOLS_VAR if EXECFUNCS_HAVE_SYMTAB endif # MODLIB_HAVE_SYMTAB diff --git a/sched/Kconfig b/sched/Kconfig index 9cbc60d2436..1eeb38d23b7 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -1487,7 +1487,6 @@ config MODULE bool "Enable loadable OS modules" default n select LIBC_MODLIB - select LIBC_ARCH_ELF ---help--- Enable support for loadable OS modules. Default: n