cancel
Showing results for 
Search instead for 
Did you mean: 

"warning: <elfFile> has a LOAD segment with RWX permissions"

vindicator
Associate II

Not really an "ask", but more an FYI...

I only just now encountered this and see it's relatively new, relating to binutils 2.39...

References:

https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments

("The executable segment warnings")

https://lore.kernel.org/lkml/CAD=FV=UK3Oyb9N9TpDqa55VEukhkjL1+GRO8+yLVxdFMuE=Mrw@mail.gmail.com/T/

("commit 0d362be5b14200b77ecc2127936a5ff82fbffe41 upstream")

Workaround/Solution:

Adding "-Wl,--no-warn-rwx-segment" disables that warning, and completes linking.

1 REPLY 1
Jack3
Senior II

Thanks vindicator!
Navgiate 
Project->Properties->C/C++ Build->Settings->Tool Settings->MCU GCC Linker->Miscellaneous->Add...

-Wl,--no-warn-rwx-segment