diff --git a/benchmarks/fio/Kconfig b/benchmarks/fio/Kconfig index 298962a6c6c..f77a8a8a8a6 100644 --- a/benchmarks/fio/Kconfig +++ b/benchmarks/fio/Kconfig @@ -6,7 +6,7 @@ config BENCHMARK_FIO tristate "Flexible I/O Tester" default n - depends on LIBC_MODLIB && LIBC_DLFCN + depends on LIBC_ELF && LIBC_DLFCN ---help--- https://github.com/axboe/fio Fio spawns a number of threads or processes doing a particular type of I/O action as specified by the user. diff --git a/examples/module/chardev/chardev.c b/examples/module/chardev/chardev.c index 82eed698c95..f0faa3bfba1 100644 --- a/examples/module/chardev/chardev.c +++ b/examples/module/chardev/chardev.c @@ -35,7 +35,7 @@ #include #include -#include +#include #include /**************************************************************************** diff --git a/examples/sotest/main/sotest_main.c b/examples/sotest/main/sotest_main.c index ccc7a325519..98b11730c7a 100644 --- a/examples/sotest/main/sotest_main.c +++ b/examples/sotest/main/sotest_main.c @@ -107,7 +107,7 @@ int main(int argc, FAR char *argv[]) #ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS char devname[32]; #endif -#if CONFIG_MODLIB_MAXDEPEND > 0 +#if CONFIG_LIBC_ELF_MAXDEPEND > 0 FAR void *handle1; #endif FAR void *handle2; @@ -170,7 +170,7 @@ int main(int argc, FAR char *argv[]) } #endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */ -#if CONFIG_MODLIB_MAXDEPEND > 0 +#if CONFIG_LIBC_ELF_MAXDEPEND > 0 /* Install the first test shared library. The first shared library only * verifies that symbols exported by one shared library can be used to * resolve undefined symbols in a second shared library. @@ -253,7 +253,7 @@ int main(int argc, FAR char *argv[]) testfunc(msg); -#if CONFIG_MODLIB_MAXDEPEND > 0 +#if CONFIG_LIBC_ELF_MAXDEPEND > 0 /* This should fail because the second shared library depends on * the first. */ @@ -276,7 +276,7 @@ int main(int argc, FAR char *argv[]) exit(EXIT_FAILURE); } -#if CONFIG_MODLIB_MAXDEPEND > 0 +#if CONFIG_LIBC_ELF_MAXDEPEND > 0 /* Now we should be able to close the first shared library. */ ret = dlclose(handle1); diff --git a/examples/sotest/modprint/modprint.c b/examples/sotest/modprint/modprint.c index 898899a24a4..744c53cdc59 100644 --- a/examples/sotest/modprint/modprint.c +++ b/examples/sotest/modprint/modprint.c @@ -32,7 +32,7 @@ #include #include -#include +#include /**************************************************************************** * Private Functions diff --git a/examples/sotest/sotest/sotest.c b/examples/sotest/sotest/sotest.c index df9ab3201ae..ff825cbac16 100644 --- a/examples/sotest/sotest/sotest.c +++ b/examples/sotest/sotest/sotest.c @@ -32,13 +32,13 @@ #include #include -#include +#include /**************************************************************************** * Public Function Prototypes ****************************************************************************/ -#if CONFIG_MODLIB_MAXDEPEND > 0 +#if CONFIG_LIBC_ELF_MAXDEPEND > 0 void modprint(FAR const char *fmt, ...) printf_like(1, 2); #endif @@ -62,7 +62,7 @@ visibility_default const char g_msg3[] = "Yes, don't be a stranger!"; * Name: modprint ****************************************************************************/ -#if CONFIG_MODLIB_MAXDEPEND < 1 +#if CONFIG_LIBC_ELF_MAXDEPEND < 1 static void modprint(FAR const char *fmt, ...) { va_list ap; diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index 744aa05fe7a..9c2a0cf9271 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -116,8 +116,8 @@ if [ -z "$prefix" ]; then echo "const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] = " echo "#elif defined(CONFIG_NSH_SYMTAB)" echo "const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] = " - echo "#elif defined(CONFIG_MODLIB_HAVE_SYMTAB)" - echo "const struct symtab_s CONFIG_MODLIB_SYMTAB_ARRAY[] = " + echo "#elif defined(CONFIG_LIBC_ELF_HAVE_SYMTAB)" + echo "const struct symtab_s CONFIG_LIBC_ELF_SYMTAB_ARRAY[] = " echo "#else" echo "const struct symtab_s dummy_symtab[] = " echo "#endif" @@ -138,8 +138,8 @@ if [ -z "$prefix" ]; then echo "const int CONFIG_EXECFUNCS_NSYMBOLS_VAR = sizeof(CONFIG_EXECFUNCS_SYMTAB_ARRAY) / sizeof(struct symtab_s);" echo "#elif defined(CONFIG_NSH_SYMTAB)" echo "const int CONFIG_NSH_SYMTAB_COUNTNAME = sizeof(CONFIG_NSH_SYMTAB_ARRAYNAME) / sizeof(struct symtab_s);" - echo "#elif defined(CONFIG_MODLIB_HAVE_SYMTAB)" - echo "const int CONFIG_MODLIB_NSYMBOLS_VAR = sizeof(CONFIG_MODLIB_SYMTAB_ARRAY) / sizeof(struct symtab_s);" + echo "#elif defined(CONFIG_LIBC_ELF_HAVE_SYMTAB)" + echo "const int CONFIG_LIBC_ELF_NSYMBOLS_VAR = sizeof(CONFIG_LIBC_ELF_SYMTAB_ARRAY) / sizeof(struct symtab_s);" echo "#else" echo "const int dummy_nsymtabs = sizeof(dummy_symtab) / sizeof(struct symtab_s);" echo "#endif"