-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update to GCC 15 #2372
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
base: main
Are you sure you want to change the base?
Update to GCC 15 #2372
Conversation
|
Build size and comparison to main:
|
|
The size difference definitely isn't zero though, I guess the CI job isn't built to handle toolchain changes |
|
14.2 (I haven't downloaded 14.3 yet but should be very similar) 10.3 |
15c6932 to
eafb127
Compare
|
Linker warnings now resolved by implementing stubs So the firmware is continuing to get smaller :) |
| // Implement functions required by libc as stubs | ||
| // These functions aren't linked into the final binary | ||
|
|
||
| __attribute__((error("stub"))) void _close(int fp) { |
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.
The attributes might be a no-op as these are technically definitions rather than declarations. But they can't hurt I guess... the docs aren't super clear
|
|
||
| set_target_properties(${EXECUTABLE_MCUBOOT_RECOVERYLOADER_NAME} PROPERTIES | ||
| SUFFIX ".out" | ||
| LINK_FLAGS "-mthumb -mabi=aapcs -std=gnu++98 -std=c99 -L ${NRF5_SDK_PATH}/modules/nrfx/mdk -T${NRF5_LINKER_SCRIPT_MCUBOOT} --specs=nosys.specs -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections -Wl,--print-memory-usage --specs=nano.specs -Wl,-Map=${EXECUTABLE_MCUBOOT_RECOVERYLOADER_FILE_NAME}.map" |
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.
just so I understand correctly. To get down size we exluded the stlib with the nosys.specs linker flag.
Why can we remove it now? I'd like to learn more
Rebase of #1512
The linker warnings still exist