mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 13:45:09 +00:00
libc/elf: rename modlib to libelf
Renaming "modlib" to "libelf" is more in line with the implementation content, which makes it easier for individual developers to understand the capabilities of this module. CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
parent
69cb2e89e9
commit
27846ffec7
6 changed files with 14 additions and 14 deletions
|
|
@ -35,7 +35,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#include <nuttx/module.h>
|
||||
#include <nuttx/lib/modlib.h>
|
||||
#include <nuttx/lib/elf.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include <syslog.h>
|
||||
|
||||
#include <nuttx/symtab.h>
|
||||
#include <nuttx/lib/modlib.h>
|
||||
#include <nuttx/lib/elf.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@
|
|||
#include <syslog.h>
|
||||
|
||||
#include <nuttx/symtab.h>
|
||||
#include <nuttx/lib/modlib.h>
|
||||
#include <nuttx/lib/elf.h>
|
||||
|
||||
/****************************************************************************
|
||||
* 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue