-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riscv: Suppress LOAD RWX linker warning #14724
Conversation
Suppress the warning message "nuttx has a LOAD segment with RWX permissions" in case of RAM boot mode is selected. RAM MODE: BOOT_RUNFROMEXTSRAM/BOOT_RUNFROMISRAM/BOOT_RUNFROMSDRAM/BOOT_COPYTORAM Signed-off-by: Huang Qi <[email protected]>
[Experimental Bot, please feedback here] No, this PR description does not fully meet the NuttX requirements. Here's why and how to fix it:
Example of an improved description: SummaryThis PR suppresses the "nuttx has a LOAD segment with RWX permissions" warning when building for RAM boot mode (BOOT_RUNFROMEXTSRAM/BOOT_RUNFROMISRAM/BOOT_RUNFROMSDRAM/BOOT_COPYTORAM) on RISC-V. This warning is a false positive in RAM boot scenarios because the entire image, including the .text segment, needs to be loaded into RAM and potentially modified before execution. The warning, while valid for other boot modes, is misleading in this context. The suppression is implemented by adding a conditional check around the warning emission in the linker script generation logic. This addresses [insert NuttX issue number here if applicable]. Impact
TestingI confirm that changes are verified on local setup and works as intended:
Testing logs before change:
Testing logs after change:
By providing this level of detail, reviewers can understand the change, its rationale, and its impact much more effectively. This significantly increases the chances of a successful and timely PR merge. |
Summary
Suppress the warning message "nuttx has a LOAD segment with RWX permissions" in case of RAM boot mode is selected. RAM MODE: BOOT_RUNFROMEXTSRAM/BOOT_RUNFROMISRAM/BOOT_RUNFROMSDRAM/BOOT_COPYTORAM
Similar to #14474
Impact
RISC-V GCC 12+
Testing
Local machine