anjiahao1 opened a new pull request, #22517:
URL: https://github.com/apache/nuttx/pull/22517

   ## Summary
   
   Add the ARM exception tables to the module link script.
   
   ARM modules carry .ARM.extab and .ARM.exidx for C++ exception
   unwinding; the module link script has no output section for them, so
   they are placed by the default rules and the unwind information ends
   up outside the read-only segment the loader maps.  Add both sections
   with the __exidx_start/__exidx_end symbols the unwinder expects, in
   the same PHDR_TEXT group as the other read-only sections.
   
   ## Impact
   
   * Is new feature added? NO - module link script fix.
   * Impact on user: NO
   * Impact on build: NO - the sections are empty on non-ARM targets.
   * 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:module
   make -j10
   ```
   
   The build completes and the generated module link script parses.  An
   ARM toolchain build links the sections into the read-only segment; the
   CI ARM module builds cover that path.
   
   ## 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]

Reply via email to