Browse Source

【更新】utest gcc 链接符

Signed-off-by: MurphyZhao <d2014zjt@163.com>
MurphyZhao 6 years ago
parent
commit
1ecf6cbc7c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      components/utilities/utest/utest.c

+ 4 - 4
components/utilities/utest/utest.c

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