-
Notifications
You must be signed in to change notification settings - Fork 303
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
recent gcc complains about "LOAD segment with RWX permissions" #106
Comments
It has no business being marked "rwx". Related to #106 on GH, but doesn't fix the "LOAD segment with RWX permissions" warning.
can we add [EDIT] ugh, no, that won't work on older versions. Not sure how I feel about doing binutils version checking in cmakelists. Doesn't bother me enough to spend time on this. |
Maybe cmake has a mechanism to check for ld-options ? https://github.com/OP-TEE/optee_os/blob/203ee23d005b2cec2f21b5de334c5a246be32599/mk/cc-option.mk |
I think it's supported by cmake diretly? |
/usr/lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: warning: cantact_fw has a LOAD segment with RWX permissions
Trying the naive fix of editing the .ldscripts RAM section as
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 6K
has no effect.
A search quickly indicates we're not the only ones seeing this :
https://stackoverflow.com/questions/73429929/gnu-linker-elf-has-a-load-segment-with-rwx-permissions-embedded-arm-project
I haven't had time to dig any further.
I'm also fairly certain this can be disregarded on baremetal, non-MMU firmware like this.
The text was updated successfully, but these errors were encountered: