From d68291d47a2344341cbec6207677cd38ddf483b7 Mon Sep 17 00:00:00 2001 From: MurphyZhao Date: Mon, 24 Dec 2018 10:55:37 +0800 Subject: [PATCH] =?UTF-8?q?[bsp]=20=E4=B8=BA=E5=B8=B8=E7=94=A8=E6=9D=BF?= =?UTF-8?q?=E5=8D=A1=E7=9A=84=20gcc=20=E9=93=BE=E6=8E=A5=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20utest=20section=20=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MurphyZhao --- bsp/qemu-vexpress-a9/link.lds | 6 ++++++ .../stm32f429-atk-apollo/board/linker_scripts/link.lds | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/bsp/qemu-vexpress-a9/link.lds b/bsp/qemu-vexpress-a9/link.lds index 78c38cde11..13854a2c01 100644 --- a/bsp/qemu-vexpress-a9/link.lds +++ b/bsp/qemu-vexpress-a9/link.lds @@ -11,6 +11,12 @@ SECTIONS *(.text) *(.text.*) + /* 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 = .; diff --git a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds index adf166dd64..bc4b95e6ae 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds @@ -31,6 +31,12 @@ SECTIONS *(.glue_7t) *(.gnu.linkonce.t*) + /* 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 = .;