mips/Makefile: Add nuttx build with CONFIG_ALLSYMS enabled. - #19784
Merged
Conversation
Change the arch/mips/src/Makefile to build nuttx with CONFIG_ALLSYMS enabled in MIPS architecture. This enables symbol name showing in system, such as 'dumpstack 3' shows both functions name and addresses. This change is referred to arch/tricore/src/Makefile and updated to work well with MIPS. And it works with and without CONFIG_ALLSYMS enabled. Fixes apache#19728 Signed-off-by: wangtao <twangpicasso@gmail.com>
1 task
xiaoxiang781216
approved these changes
Aug 11, 2026
acassis
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change the arch/mips/src/Makefile to build nuttx with CONFIG_ALLSYMS enabled in MIPS architecture. This enables symbol name showing in system, such as 'dumpstack 3' shows both functions name and addresses.
This change is referred to arch/tricore/src/Makefile and updated to work well with MIPS. And it works with and without CONFIG_ALLSYMS enabled.
Fixes #19728
Note: Please adhere to Contributing Guidelines.
Summary
Change the arch/mips/src/Makefile to build nuttx with CONFIG_ALLSYMS enabled in MIPS architecture. This enables symbol name showing in system, such as 'dumpstack 3' shows both functions name and addresses.
This change is referred to arch/tricore/src/Makefile and updated to work well with MIPS. And it works with and without CONFIG_ALLSYMS enabled.
Impact
It is used for building nuttx in MIPS architecture with or without CONFIG_ALLSYMS enabled.
Testing
symtab_allsyms, not find instance.Then
load all symbols for debugginginLibrary Routines, save and exit.CONFIG_ALLSYMSis defined.symtab_allsyms, there are several instances. And there are.data.g_allsymsand.data.g_nallsymsdefined.The testing host is WSL2 with Linux-6.6.114.1-microsoft-standand-WSL2 kernel.
I have NO pic32 or jz4780 board, I did NOT test the real nuttx in hardware.
No special document update needed.