瀏覽代碼

【更新】utest gcc 链接符

Signed-off-by: MurphyZhao <d2014zjt@163.com>
MurphyZhao 6 年之前
父節點
當前提交
1ecf6cbc7c
共有 1 個文件被更改,包括 4 次插入4 次删除
  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);