From f3b4eb3b33581baf1caee702caa1072fe148711d Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Wed, 16 Oct 2019 08:43:48 -0700 Subject: [PATCH] Fix for missing os_cb_section -Added the os_cb_section stub to remove the warnings Incorporated the below review comment -Repharase source code comment --- platform/source/mbed_sdk_boot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/source/mbed_sdk_boot.c b/platform/source/mbed_sdk_boot.c index 9d6694fd19..eec7f8063d 100644 --- a/platform/source/mbed_sdk_boot.c +++ b/platform/source/mbed_sdk_boot.c @@ -87,6 +87,9 @@ void _platform_post_stackheap_init(void) us_ticker_init(); #endif } +//Define an empty os_cb_sections to remove a RTX warning when building with no RTOS due +//to the --keep=os_cb_sections linker option +const uint32_t os_cb_sections[] __attribute__((section(".rodata"))) = {}; #elif defined (__GNUC__)