浏览代码

Bug fixed while using UTEST framework (#8577)

Wind 1 年之前
父节点
当前提交
859781232c
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      bsp/raspberry-pico/link.ld

+ 6 - 0
bsp/raspberry-pico/link.ld

@@ -71,6 +71,12 @@ SECTIONS
         *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .text*)
         *(.fini)
 
+        /* section information for utest */
+        . = ALIGN(4);
+        __rt_utest_tc_tab_start = .;
+        KEEP(*(UtestTcTab))
+        __rt_utest_tc_tab_end = .;
+
         /* section information for finsh shell */
         . = ALIGN(4);
         __fsymtab_start = .;