You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "codusnocturnus (via GitHub)" <gi...@apache.org> on 2024/02/04 19:56:33 UTC

Re: [I] Fix arm-none-eabi-ld: warning: /github/workspace/sources/nuttx/nuttx has a LOAD segment with RWX permissions [nuttx]

codusnocturnus commented on issue #11462:
URL: https://github.com/apache/nuttx/issues/11462#issuecomment-1925896886

   Just getting into this level of development, and am only working with STM32, so I can't say it's an all-around fix with no edge cases, but the solution on this blog seems to work: [Solution to LOAD segment with RWX permissions warning with CMSIS](https://metebalci.com/blog/solution-to-load-segment-with-rwx-permissions-warning-with-cmsis)
   
   To summarize, define a PHDRS block in the linker script with descriptions for the text, data, and bss segments, and apply the descriptions to the related output sections.
   
   The warning goes away, and the ELF listing will show that the flags on segment 0 are now "correct".


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org