-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 to gcc13.2 #9579
Conversation
stronnag
commented
Dec 19, 2023
- rework for Arm's new naming / paths / case inconsistency
- support native binary on darwin/aarch64
- fix ATF4 link warning
- workaround spurious linker warnings for unused functions
add "-Wl,--no-warn-rwx-segments" for ATF4
As will be seen from the cmake file, there is a fairly ugly workaround for some strange behaviour in newlib 4.3, which results in many (16) link warnings for functions not used (AFAIK) by INAV:
In order to suppress the warnings, as they (a) appear spurious / harmless and (b) would be a support burden, the warnings are suppressed by removing the It is possible that someone with rather more insight into the Arm compiler / linker may have a better solution. With the above workaround, all release targets build locally without warnings. |
Comparative images sizes for various firmwareGcc 10.3
Gcc 13.2.1
|
All release firmware link sizes (no warnings present)
|
Test Built on the following platforms:
Not tested on:
|
add "-Wl,--no-warn-rwx-segments" for ATF4