Browse Source

Bug fixed while using UTEST framework (#8577)

Wind 1 year ago
parent
commit
859781232c
1 changed files with 6 additions and 0 deletions
  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 = .;