<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125901/mcuboot-warning-zephyr-zephyr_pre0-elf-has-a-load-segment-with-rwx-permissions</link><description>Same problem as , which was 3 years ago... 
 Our app builds fine until we enable MCUboot, when we get the above warning, and being good people we have CONFIG_COMPILER_WARNINGS_AS_ERRORS enabled, which means our application can&amp;#39;t build. 
 For now I&amp;#39;ve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Dec 2025 16:23:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125901/mcuboot-warning-zephyr-zephyr_pre0-elf-has-a-load-segment-with-rwx-permissions" /><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/556272?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2025 16:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b329c0a-fe91-4933-9290-c3d406c1e016</guid><dc:creator>Glenn Andrews</dc:creator><description>&lt;p&gt;HI Vidar,&lt;/p&gt;
&lt;p&gt;Yes, we&amp;#39;re going to try and upstream something, get some input from the larger community.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/556271?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2025 15:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58305adb-76ef-4354-b24b-31722b2a54f9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;I&amp;#39;m glad to see you found a workaround for this, thank you for the update. I did spend some&amp;nbsp;time on this comparing elf files, linker scripts and map files but did not manage to narrow it down to these linker sections like you did. However, I found&amp;nbsp;following PRs which shows that we have seen this issue with the Zephyr SDK as well:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/89577"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/89577&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/89574"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/89574&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Although&amp;nbsp;these commits&amp;nbsp;do not explain&amp;nbsp;why I&amp;#39;m only able to trigger the warning now with the&amp;nbsp;GNU ARM embedded toolchain. &amp;nbsp;Are you planning&amp;nbsp;follow up on this in upstream Zephyr? If not, I can create a report in our bug tracker so we can track the issue internally.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/556189?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2025 23:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50634af2-f85c-4896-bce5-1034b223aed0</guid><dc:creator>Glenn Andrews</dc:creator><description>&lt;p&gt;We found a workaround in the Zephyr source code:&lt;/p&gt;
&lt;p&gt;in &lt;code&gt;zephyr/include/zephyr/linker/iterable_sections.h&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ITERABLE_SECTION_ROM&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;struct_type&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;subalign&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;br /&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;SECTION_PROLOGUE&lt;/span&gt;&lt;span&gt;(struct_type&lt;/span&gt;&lt;span&gt;##_area&lt;/span&gt;&lt;span&gt;, (READONLY),) &lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;br /&gt;&lt;span&gt;  { &lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;br /&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;Z_LINK_ITERABLE&lt;/span&gt;&lt;span&gt;(struct_type); &lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;br /&gt;&lt;span&gt;  } &lt;/span&gt;&lt;span&gt;GROUP_ROM_LINK_IN&lt;/span&gt;&lt;span&gt;(RAMABLE_REGION, ROMABLE_REGION)&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;The difference is adding &lt;code&gt;(READONLY)&lt;/code&gt; to the &lt;code&gt;SECTION_PROLOGUE&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/556162?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2025 16:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9881e218-bafb-4708-8ca5-010ea43db029</guid><dc:creator>Glenn Andrews</dc:creator><description>&lt;p&gt;I&amp;#39;ll check with the Powers That Be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/556120?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2025 13:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88cebe8-c9f5-408d-95ef-1c6193fa7b79</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I have asked around and it does not appear to be a known issue. Internally we are using GCC from the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/354714/Zephyr%20SDK"&gt;Zephyr SDK&lt;/a&gt;&amp;nbsp; which means we have&amp;nbsp;limited or no test coverage with this toolchain. I also tried&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/354714/Zephyr%20SDK"&gt;Zephyr SDK&lt;/a&gt;&lt;span&gt;&amp;nbsp;v1.0.0-beta1 which includes GCC 14.3.0 but that did not trigger&amp;nbsp;in this warning either. Is using the Zephyr SDK with arm-zephyr-eabi-gcc an option for you? This is the recommended toolchain and it greatly reduces the build times when using picolib.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It may also be worth adding that the MPU driver is configured to prevent execution from RAM by default. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/555914?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 16:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c1255c-f2d8-49a8-95c9-0f29210012bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for confirming. I was able to reproduce the same now just by building &amp;quot;Hello World&amp;quot; without the bootloader. I will investigate further and check with the developers whether&amp;nbsp;this may be a known issue. I was on GCC version 12.2.0 prior to this.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;arm-zephyr-eabi-gcc --version&lt;br /&gt;arm-zephyr-eabi-gcc (Zephyr SDK 0.17.0) 12.2.0&lt;br /&gt;Copyright (C) 2022 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions. There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/555905?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 16:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b747662b-85af-417d-88c1-838c974f1aea</guid><dc:creator>Glenn Andrews</dc:creator><description>&lt;p&gt;We&amp;#39;re using gcc-arm-none-eabi 12.2-Rel1&lt;/p&gt;
&lt;p&gt;Somewhere around GCC 12 they added this warning, before that it was ignored.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot: warning: zephyr/zephyr_pre0.elf has a LOAD segment with RWX permissions</title><link>https://devzone.nordicsemi.com/thread/555902?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 16:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd90b2e3-308f-44cd-a4c1-284aab211d10</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for reporting. I don’t recall seeing reports of this error before, and the issue discussed&amp;nbsp;in the linked Q&amp;amp;A is for TF-M, which I think may be a bit different since it’s built as an external project in Zephyr. Could you please let me know which toolchain and toolchain version you’re using so I can try to reproduce the same here? Is it the NCS toolchain or one of the others listed here?&lt;/span&gt;:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.2.0-preview3/page/zephyr/develop/toolchains/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.2.0-preview3/page/zephyr/develop/toolchains/index.html&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>