anjiahao1 opened a new pull request, #4161:
URL: https://github.com/apache/nuttx-apps/pull/4161
## Summary
Set the task stack size for ELF file apps from nsh.
CONFIG_ELF_STACKSIZE selects the stack size used by the ELF loader when
the loaded binary carries no stack size attribute. nsh_fileapp() left
the spawn attribute unset, so a file app started through nsh always got
the loader default and the Kconfig option had no effect on that path.
Set the attribute explicitly when CONFIG_ELF_STACKSIZE is enabled.
## Impact
* Is new feature added? NO - makes an existing option apply to this path.
* Impact on user: YES - file apps started from nsh now use the
configured stack size.
* Impact on build: NO
* Impact on hardware: NO
* Impact on documentation: NO
* Impact on security: NO
* Impact on compatibility: NO
## Testing
Build host: Linux x86_64, gcc 13.3.
```
tools/configure.sh -a <apps> sim:nsh
# enable CONFIG_BINFMT_ELF and CONFIG_ELF_STACKSIZE=4096
make -j10
```
The build completes with the new code path compiled in.
## PR verification
* [x] This PR introduces only one functional change.
* [x] I have updated all required description fields above.
* [x] My PR adheres to Contributing Guidelines and Documentation.
* [ ] My PR is still work in progress (not ready for review).
* [x] My PR is ready for review and can be safely merged into a codebase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]