diff --git a/include/nuttx/symtab.h b/include/nuttx/symtab.h index e6bde2c4d1e..19d43a82035 100644 --- a/include/nuttx/symtab.h +++ b/include/nuttx/symtab.h @@ -51,8 +51,8 @@ struct symtab_s { - FAR const char *sym_name; /* A pointer to the symbol name string */ - FAR const void *sym_value; /* The value associated with the string */ + FAR const char *sym_name; /* A pointer to the symbol name string */ + FAR const void *sym_value; /* The value associated with the string */ }; /**************************************************************************** diff --git a/libs/libc/symtab/Kconfig b/libs/libc/symtab/Kconfig index 0079b26dd45..32689da1e82 100644 --- a/libs/libc/symtab/Kconfig +++ b/libs/libc/symtab/Kconfig @@ -10,3 +10,26 @@ config ALLSYMS Say Y here to let the nuttx print out symbolic crash information and symbolic stack backtraces. This increases the size of the nuttx somewhat, as all symbols have to be loaded into the nuttx image. + +config SYMTAB_ORDEREDBYNAME + bool "Symbol Tables Ordered by Name" + default n + ---help--- + Select if the symbol table is ordered by symbol name. In this case, + the logic can perform faster lookups using a binary search. + Otherwise, the symbol table is assumed to be un-ordered and only + slow, linear searches are supported. + +config SYMTAB_ORDEREDBYVALUE + bool "Symbol Tables Ordered by Value" + default n + ---help--- + Select if the symbol table is ordered by symbol value. + +config SYMTAB_DECORATED + bool "Symbols are decorated with leading underscores" + default n + ---help--- + Select if symbols in relocatable objects are decorated with a leading + underscore. This option will remove the underscore from symbol names + when relocating a loadable object. diff --git a/libs/libc/unistd/Kconfig b/libs/libc/unistd/Kconfig index 83c56e6c49b..1c1ee3e1ee8 100644 --- a/libs/libc/unistd/Kconfig +++ b/libs/libc/unistd/Kconfig @@ -94,29 +94,6 @@ config EXECFUNCS_SYSTEM_SYMTAB endif # EXECFUNCS_HAVE_SYMTAB endif # LIBC_EXECFUNCS -config SYMTAB_ORDEREDBYNAME - bool "Symbol Tables Ordered by Name" - default n - ---help--- - Select if the symbol table is ordered by symbol name. In this case, - the logic can perform faster lookups using a binary search. - Otherwise, the symbol table is assumed to be un-ordered and only - slow, linear searches are supported. - -config SYMTAB_ORDEREDBYVALUE - bool "Symbol Tables Ordered by Value" - default n - ---help--- - Select if the symbol table is ordered by symbol value. - -config SYMTAB_DECORATED - bool "Symbols are decorated with leading underscores" - default n - ---help--- - Select if symbols in relocatable objects are decorated with a leading - underscore. This option will remove the underscore from symbol names - when relocating a loadable object. - config POSIX_SPAWN_DEFAULT_STACKSIZE int "Default task_spawn Stack Size" default DEFAULT_TASK_STACKSIZE