diff options
| author | Sean Cross <[email protected]> | 2019-10-12 14:51:40 +0800 |
|---|---|---|
| committer | Sean Cross <[email protected]> | 2019-11-13 09:03:12 -0800 |
| commit | ba889eeb9e99500736a1aec38f38645a335bd5a1 (patch) | |
| tree | 6f63ead17011fcd4f38a2b9cead635f854fe6920 | |
| parent | 36ede44885365faa230b63867e8392addd48e7b3 (diff) | |
bsp: fomu: fix linker script overlap
The end of the data section was overlapping the start of the bss.
Signed-off-by: Sean Cross <[email protected]>
| -rw-r--r-- | hw/bsp/fomu/fomu.ld | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/bsp/fomu/fomu.ld b/hw/bsp/fomu/fomu.ld index f39d62f35..2a3f2376a 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.*) |
