Merged in masayuki2009/nuttx.apps/fix_symtab_related (pull request #146)
Fix symtab related * apps/tools: Add +x to mksymtab.sh Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * apps/examples/nsh: Fix compile errors with CONFIG_EXAMPLES_NSH_SYMTAB=y Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
parent
4db29bc2eb
commit
9240ef5536
@ -194,8 +194,8 @@ int nsh_main(int argc, char *argv[])
|
||||
symdesc.nsymbols = 0;
|
||||
|
||||
#else /* if defined(CONFIG_EXAMPLES_NSH_SYMTAB) */
|
||||
symdesc.symtab = (FAR struct symtab_s *)g_exports; /* Discard 'const' */
|
||||
symdesc.nsymbols = g_nexports;
|
||||
symdesc.symtab = (FAR struct symtab_s *)CONFIG_EXAMPLES_NSH_SYMTAB_ARRAYNAME; /* Discard 'const' */
|
||||
symdesc.nsymbols = CONFIG_EXAMPLES_NSH_SYMTAB_COUNTNAME;
|
||||
#endif
|
||||
|
||||
(void)boardctl(BOARDIOC_APP_SYMTAB, (uintptr_t)&symdesc);
|
||||
|
0
tools/mksymtab.sh
Normal file → Executable file
0
tools/mksymtab.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user