Skip to content

mips/Makefile: Add nuttx build with CONFIG_ALLSYMS enabled. - #19784

Merged
acassis merged 1 commit into
apache:masterfrom
wangtao13:mips_allsyms
Aug 11, 2026
Merged

mips/Makefile: Add nuttx build with CONFIG_ALLSYMS enabled.#19784
acassis merged 1 commit into
apache:masterfrom
wangtao13:mips_allsyms

Conversation

@wangtao13

@wangtao13 wangtao13 commented Aug 11, 2026

Copy link
Copy Markdown

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

  1. tools/configure.sh -l ci20:nsh
  2. make -j10
  3. nuttx is built, nuttx.bin, nuttx.map are generated.
  4. open nuttx.map, search symtab_allsyms, not find instance.

Then

  1. make menuconfig, select load all symbols for debugging in Library Routines, save and exit.
  2. check .config, confirm CONFIG_ALLSYMS is defined.
  3. make clean && make -j10
  4. nuttx is built, nuttx.bin, nuttx.map are generated,
  5. open nuttx.map, search symtab_allsyms, there are several instances. And there are .data.g_allsyms and .data.g_nallsyms defined.

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.

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>
@github-actions github-actions Bot added Arch: mips Issues related to the MIPS architecture Size: S The size of the change in this PR is small labels Aug 11, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis
acassis merged commit 23ea150 into apache:master Aug 11, 2026
39 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: mips Issues related to the MIPS architecture Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HELP] Failed to build nuttx with ALLSYMS enabled in MIPS.

3 participants