- Notifications
You must be signed in to change notification settings - Fork1k
chore: mark some segments as READONLY#2490
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fpistm commentedAug 21, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This PR fixed all warnings for standard application. I've reproduced easily with a Blink example on a STM32L4 target by adding:
|
Prevent LOAD segment with RWX permissions warning.The "READONLY" keyword is only supported in GCC11 and later,remove it if using GCC10 or earlier.Fixesstm32duino#2475.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Ignore it also when only overflow detected.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
To go further, warning is reached due to the usage of at least one RAM function: Example with HAL FLASH API:
So, I kept the warning disabled, but new linker script should use the |
1a44f9c
intostm32duino:mainUh oh!
There was an error while loading.Please reload this page.
This PR reverts794945c then update all linker scripts to mark some segments as
READONLY
.Prevent LOAD segment with RWX permissions warning.
The
READONLY
keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.Fixes#2475.