From 859781232c1001c28c419e713c301d9eadc0cfe2 Mon Sep 17 00:00:00 2001 From: Wind <30318888+HERE88@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:25:28 +0800 Subject: [PATCH] Bug fixed while using UTEST framework (#8577) --- bsp/raspberry-pico/link.ld | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bsp/raspberry-pico/link.ld b/bsp/raspberry-pico/link.ld index d997d973d5..b3b7d3c12a 100644 --- a/bsp/raspberry-pico/link.ld +++ b/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 = .;