Skip to content

Conversation

@extinguish
Copy link

@extinguish extinguish commented Nov 28, 2025

Summary

  1. rearrange the elf test directory, make the sub-testcase in separate directory
  2. delete unnecessary generation of mod_symtab.c
  3. make the examples/elf project can work when signal is disabled
  4. avoid interference between different ELFs generated by symtab

this request is depends on apache/nuttx#17397

Impact

mainly affect the examples/elf project, has no impact on other modules

Testing

has passed the relative tests

anjiahao1 and others added 3 commits November 28, 2025 09:58
rearrange the elf test directory, make the sub-testcase in separate
directory

Signed-off-by: anjiahao <[email protected]>
delete the mod_symtab.c generate procedure

Signed-off-by: anjiahao <[email protected]>
make the example elf can work with SIGNAL disabled

Signed-off-by: v-tangmeng <[email protected]>
if defined CONFIG_EXAMPLES_ELF and CONFIG_EXAMPLES_MODLUE,
elf will generated BINDIR, so generated symtab will interference.
It supports inputting multiple specified files in mksymtab.sh to
avoid interference.

Signed-off-by: anjiahao <[email protected]>
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @extinguish, CI build errors, please fix :-)

====================================================================================
Configuration/Tool: nucleo-h743zi/elf,CONFIG_ARM_TOOLCHAIN_CLANG
2025-11-28 10:31:47
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Enabling CONFIG_ARM_TOOLCHAIN_CLANG
  Building NuttX...
Error: <inline asm>:5:12: error: Could not find incbin file '../../apps/examples/elf/tests/romfs.img'
    5 |    .incbin "../../apps/examples/elf/tests/romfs.img"
      |            ^
1 error generated.
make[2]: *** [/github/workspace/sources/nuttx/boards/Board.mk:83: stm32_romfs_initialize.o] Error 1
make[2]: Target 'libboard.a' not remade because of errors.
make[1]: *** [Makefile:187: board/libboard.a] Error 2
make[1]: Target 'nuttx' not remade because of errors.
make: *** [tools/Unix.mk:552: nuttx] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory
  [1/1] Normalize nucleo-h743zi/elf
On branch master
Your branch is up to date with 'origin/master'.

Copy link
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The testing section is insufficient.

has passed the relative tests

What are these tests and what were the results? With logs please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants