From 3e7a245c4637670a120048897a194711b2c8d53f Mon Sep 17 00:00:00 2001 From: ZYH Date: Fri, 22 Mar 2019 09:52:02 +0800 Subject: [PATCH] [BSP][K210]utest support --- bsp/k210/link.lds | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/bsp/k210/link.lds b/bsp/k210/link.lds index 851861f19f..bcf7681595 100644 --- a/bsp/k210/link.lds +++ b/bsp/k210/link.lds @@ -33,7 +33,7 @@ SECTIONS *(.start); } > SRAM - . = ALIGN(4); + . = ALIGN(8); .text : { @@ -46,24 +46,28 @@ SECTIONS *(.gnu.linkonce.t*) /* section information for finsh shell */ - . = ALIGN(4); + . = ALIGN(8); __fsymtab_start = .; KEEP(*(FSymTab)) __fsymtab_end = .; - . = ALIGN(4); + . = ALIGN(8); __vsymtab_start = .; KEEP(*(VSymTab)) __vsymtab_end = .; - . = ALIGN(4); + . = ALIGN(8); /* section information for initial. */ - . = ALIGN(4); + . = ALIGN(8); __rt_init_start = .; KEEP(*(SORT(.rti_fn*))) __rt_init_end = .; - . = ALIGN(4); + . = ALIGN(8); - . = ALIGN(4); + __rt_utest_tc_tab_start = .; + KEEP(*(UtestTcTab)) + __rt_utest_tc_tab_end = .; + + . = ALIGN(8); _etext = .; } > SRAM @@ -74,7 +78,7 @@ SECTIONS } > SRAM .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } > SRAM - . = ALIGN(4); + . = ALIGN(8); .data : {