bsp: fomu: fix linker script overlap

The end of the data section was overlapping the start of the bss.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-10-12 14:51:40 +08:00
parent 36ede44885
commit ba889eeb9e
1 changed files with 3 additions and 2 deletions

View File

@ -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.*)