-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Update toolchain-gccarmnoneeabi for SKR Mini E3 V3/3.0.1, Manta Series, & EBB42 #26320
Conversation
Alternatively, I could have pinned |
so things "broke" right after this commit made on Sept 1? IIRC, using the previous 12.2re1 tool chain had caused the error that could be silenced with have you found out what exactly made things not work in the first place? or what change made things "fixed" for the most part? edit: |
I literally linked to that in the PR description. |
".platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe:" give no help at all. i'm painstaking comparing each folder file by file. but ill just not waste my time. |
from this website
$ readelf -lW firmware-20231002-235514.elf | grep RWE
LOAD 0x001000 0x08002000 0x08002000 0x36a80 0x36a80 RWE 0x1000 honestly I am not exactly sure where to go from here. I'll need to output that address to see what the warning is linked to. none-the-less I'm interested in finding what the warning pertains to. |
UpdateI would disregard the whole trying to fix the warning thing. and use --no-warn-rwx-segment was added to the more recent toolchain, so Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000000 0x08000000 0x08000000 0x39420 0x39420 RWE 0x10000 basically the same RWE flag is present. that is all what causes the (RWX) warning. meaning if program headers give a flag more than RW, like we see RWE (X being a variable), that's all that it means. It's is informing us that we get R+W+E. so thats all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add
-Wl,--no-warn-rwx-segment
f37ac82
to
7c92c75
Compare
Prevent "warning: /firmware.elf has a LOAD segment with RWX permissions"
This appears to be a macOS-specific issue with |
Completely deleting the |
Description
Compiling for an SKR Mini E3 V3, V3.0.1, Manta Series, or BTT EBB42 V1.1, you get the following error:
This is due to using
toolchain-gccarmnoneeabi@1.100301.220327
. Updating totoolchain-gccarmnoneeabi@1.120301.0
fixes the compile error, but creates a new warning:That can be silenced with a
-Wl,--no-warn-rwx-segment
build flag (source), but I'm not sure if that's the best way to handle it.Requirements
SKR Mini E3 V3, V3.0.1, Manta Series, or BTT EBB42 V1.1
Benefits
Allows users to compile for these boards again.
Configurations
MarlinFirmware/Configurations/tree/bugfix-2.1.x/config/examples/Creality/Ender-3/BigTreeTech SKR Mini E3 3.0
Related Issues