From ba889eeb9e99500736a1aec38f38645a335bd5a1 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 12 Oct 2019 14:51:40 +0800 Subject: [PATCH] bsp: fomu: fix linker script overlap The end of the data section was overlapping the start of the bss. Signed-off-by: Sean Cross --- hw/bsp/fomu/fomu.ld | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/bsp/fomu/fomu.ld b/hw/bsp/fomu/fomu.ld index f39d62f3..2a3f2376 100644 --- a/hw/bsp/fomu/fomu.ld +++ b/hw/bsp/fomu/fomu.ld @@ -27,6 +27,7 @@ SECTIONS *(.rodata .rodata.* .gnu.linkonce.r.*) *(.rodata1) *(.srodata) + . = ALIGN(4); _erodata = .; } > rom @@ -38,12 +39,12 @@ SECTIONS *(.data1) _gp = ALIGN(16); *(.sdata .sdata.* .gnu.linkonce.s.* .sdata2 .sdata2.*) - _edata = ALIGN(16); /* Make sure _edata is >= _gp. */ + . = ALIGN(16); + _edata = .; /* Make sure _edata is >= _gp. */ } > sram .bss : { - . = ALIGN(4); _fbss = .; *(.dynsbss) *(.sbss .sbss.* .gnu.linkonce.sb.*)