【更新】utest gcc 链接符

Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
MurphyZhao 2018-12-05 14:53:13 +08:00
parent 85d275b399
commit 1ecf6cbc7c
1 changed files with 4 additions and 4 deletions

View File

@ -51,10 +51,10 @@ int utest_init(void)
tc_table = (utest_tc_export_t)__section_begin("UtestTcTab");
tc_num = (utest_tc_export_t)__section_end("UtestTcTab") - tc_table;
#elif defined (__GNUC__) /* for GCC Compiler */
extern const int __rtatcmdtab_start;
extern const int __rtatcmdtab_end;
tc_table = (utest_tc_export_t)&__rtatcmdtab_start;
tc_num = (utest_tc_export_t) &__rtatcmdtab_end - tc_table;
extern const int __rt_utest_tc_tab_start;
extern const int __rt_utest_tc_tab_end;
tc_table = (utest_tc_export_t)&__rt_utest_tc_tab_start;
tc_num = (utest_tc_export_t) &__rt_utest_tc_tab_end - tc_table;
#endif /* defined(__CC_ARM) */
LOG_D("[ ] total utest testcase num: (%d)", tc_num);