-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openiotsdk: Enable build with GCC 12 (#26162)
TF-M fails to link with GCC 11.3 and onward as new warning are raised at link time and the linking step disallow warning. To workaround the issue we disable link warnings for TF-M by patching it. Signed-off-by: Vincent Coubard <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/toolchain_GNUARM.cmake b/toolchain_GNUARM.cmake | ||
index d044ed4a5..3d8f64d17 100644 | ||
--- a/toolchain_GNUARM.cmake | ||
+++ b/toolchain_GNUARM.cmake | ||
@@ -71,7 +71,6 @@ macro(tfm_toolchain_reset_linker_flags) | ||
--entry=Reset_Handler | ||
--specs=nano.specs | ||
LINKER:-check-sections | ||
- LINKER:-fatal-warnings | ||
LINKER:--gc-sections | ||
LINKER:--no-wchar-size-warning | ||
${MEMORY_USAGE_FLAG} |