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
pull/11699/head
Rajkumar Kanagaraj 2019-10-16 08:43:48 -07:00
parent 1798c246cc
commit f3b4eb3b33
1 changed files with 3 additions and 0 deletions

View File

@ -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__)