From 491f13e289697703ef5fa4b8100ddc9b4f20b53e Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 17 Nov 2024 13:09:12 -0500 Subject: [PATCH] [utest][stm32f412][gcc] add __rt_utest_tc_tab_start to support utest --- bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds index 1da876e360..0e417f2a80 100644 --- a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds @@ -40,6 +40,12 @@ SECTIONS KEEP(*(VSymTab)) __vsymtab_end = .; + /* section information for utest */ + . = ALIGN(4); + __rt_utest_tc_tab_start = .; + KEEP(*(UtestTcTab)) + __rt_utest_tc_tab_end = .; + /* section information for initial. */ . = ALIGN(4); __rt_init_start = .;