Skip to content

Commit 70f3cf8

Browse files
authored
Merge pull request #11699 from rajkan01/feature-os-cb-section
Fix for missing os_cb_section
2 parents 9e87200 + b88b6a5 commit 70f3cf8

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+
//Define an empty os_cb_sections to remove a RTX warning when building with no RTOS due
91+
//to the --keep=os_cb_sections linker option
92+
const uint32_t os_cb_sections[] __attribute__((section(".rodata"))) = {};
9093

9194
#elif defined (__GNUC__)
9295

0 commit comments

Comments
 (0)