Description
I am trying to build nuttx 12.13.0 for mips with CONFIG_ALLSYMS enabled, but I hit following errors in linking.
/home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyname':
symtab/symtab_allsyms.c:(.text+0x34): undefined reference to `g_nallsyms'
symtab/symtab_allsyms.c:(.text+0x38): undefined reference to `g_nallsyms'
symtab/symtab_allsyms.c:(.text+0x4c): undefined reference to `g_allsyms'
symtab/symtab_allsyms.c:(.text+0x60): undefined reference to `g_allsyms'
/home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyvalue':
symtab/symtab_allsyms.c:(.text+0xfc): undefined reference to `g_nallsyms'
symtab/symtab_allsyms.c:(.text+0x100): undefined reference to `g_nallsyms'
/home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyname':
symtab/symtab_allsyms.c:(.text+0x3c): undefined reference to `g_allsyms'
/home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyvalue':
symtab/symtab_allsyms.c:(.text+0x114): undefined reference to `g_allsyms'
symtab/symtab_allsyms.c:(.text+0x104): undefined reference to `g_allsyms'
symtab/symtab_allsyms.c:(.text+0x128): undefined reference to `g_allsyms'
make[1]: *** [Makefile:106: nuttx] Error 1
make: *** [tools/Unix.mk:565: nuttx] Error 2
I checked the arch/tricore/src/Makefile, and followed it to add LINK_ALLSYMS target into my Makefile, but it still failed.
So what is the right way to build nuttx with CONFIG_ALLSYMS enabled (without KASAN enabled)?
Verification
Description
I am trying to build nuttx 12.13.0 for mips with
CONFIG_ALLSYMSenabled, but I hit following errors in linking.I checked the
arch/tricore/src/Makefile, and followed it to addLINK_ALLSYMStarget into my Makefile, but it still failed.So what is the right way to build nuttx with
CONFIG_ALLSYMSenabled (without KASAN enabled)?Verification