Skip to content

Commit 22a2cd4

Browse files
committed
Fix for missing os_cb_section
-Added the os_cb_section stub to remove the warnings
1 parent 1798c24 commit 22a2cd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/source/mbed_sdk_boot.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ void _platform_post_stackheap_init(void)
8787
us_ticker_init();
8888
#endif
8989
}
90+
// The below resolves the missing variable warning while config with --keep command with os_cb_sections
91+
// Arm Compiler 6 version 6.12 and earlier versions are affected.
92+
const uint32_t os_cb_sections[] __attribute__((section(".rodata"))) = {};
9093

9194
#elif defined (__GNUC__)
9295

0 commit comments

Comments
 (0)