sched/symtab: Reference default symtab name to binfmt

This commit is contained in:
anchao 2018-08-22 06:21:20 -06:00 committed by Gregory Nutt
parent c43b3e5a34
commit 0124b629a9
2 changed files with 8 additions and 2 deletions

View File

@ -335,7 +335,8 @@ config USER_INITPATH
config INIT_SYMTAB
string "Symbol table"
default "NULL"
default "NULL" if !EXECFUNCS_HAVE_SYMTAB
default EXECFUNCS_SYMTAB_ARRAY if EXECFUNCS_HAVE_SYMTAB
depends on !BUILD_PROTECTED && !BUILD_KERNEL
---help---
The name of othe global array that holds the exported symbol table.
@ -348,7 +349,8 @@ config INIT_SYMTAB
config INIT_NEXPORTS
string "Symbol table size"
default "0"
default "0" if !EXECFUNCS_HAVE_SYMTAB
default EXECFUNCS_NSYMBOLS_VAR if EXECFUNCS_HAVE_SYMTAB
depends on !BUILD_PROTECTED && !BUILD_KERNEL
---help---
The size of the symbol table. NOTE that is is logically a numeric

View File

@ -50,6 +50,7 @@
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <nuttx/init.h>
#include <nuttx/symtab.h>
#include <nuttx/wqueue.h>
#include <nuttx/kthread.h>
#include <nuttx/userspace.h>
@ -114,6 +115,9 @@
# undef CONFIG_INIT_NEXPORTS
# define CONFIG_INIT_SYMTAB NULL
# define CONFIG_INIT_NEXPORTS 0
# else
extern const struct symtab_s CONFIG_INIT_SYMTAB[];
extern const int CONFIG_INIT_NEXPORTS;
# endif
# endif
#endif