From f3b4eb3b33581baf1caee702caa1072fe148711d Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Wed, 16 Oct 2019 08:43:48 -0700 Subject: [PATCH 1/2] 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 9d6694fd196..eec7f8063de 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__) From b88b6a5c8ba06eca65120767cf597c30802d0052 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Fri, 18 Oct 2019 03:06:19 -0700 Subject: [PATCH 2/2] fixed astyle issue --- platform/source/mbed_sdk_boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/source/mbed_sdk_boot.c b/platform/source/mbed_sdk_boot.c index eec7f8063de..ec86aea7441 100644 --- a/platform/source/mbed_sdk_boot.c +++ b/platform/source/mbed_sdk_boot.c @@ -87,7 +87,7 @@ 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 +//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"))) = {};