diff options
| author | Bernard Xiong <[email protected]> | 2018-12-24 20:00:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-24 20:00:04 +0800 |
| commit | cd4ac30b8025f81157ef42f8a33f452e5823d33f (patch) | |
| tree | 1362d601ae3d0f00ad4e3f9d61e0b1a0d0e07694 | |
| parent | 36ad0d143fe27badf09854ac27730139dac0ca94 (diff) | |
| parent | d68291d47a2344341cbec6207677cd38ddf483b7 (diff) | |
Merge pull request #2106 from zhaojuntao/lds-1224
[bsp] 为常用板卡的 gcc 链接脚本增加 utest section 段
| -rw-r--r-- | bsp/qemu-vexpress-a9/link.lds | 6 | ||||
| -rw-r--r-- | bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds | 6 |
2 files changed, 12 insertions, 0 deletions
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 = .; |
