From: Florent Kermarrec Date: Wed, 18 Jul 2018 07:30:14 +0000 (+0200) Subject: software/bios/linker: revert data section since required by RISC-V compiler X-Git-Tag: 24jan2021_ls180~1671 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85308672d396111a07c70e0704c5c4191826d4ac;p=litex.git software/bios/linker: revert data section since required by RISC-V compiler --- diff --git a/litex/soc/software/bios/linker.ld b/litex/soc/software/bios/linker.ld index 13b4bcae..4cbe0bec 100644 --- a/litex/soc/software/bios/linker.ld +++ b/litex/soc/software/bios/linker.ld @@ -26,6 +26,21 @@ SECTIONS _erodata = .; } > rom + .data : + { + . = ALIGN(4); + _fdata = .; + *(.data .data.* .gnu.linkonce.d.*) + *(.data1) + *(.sdata .sdata.* .gnu.linkonce.s.*) + + /* Make sure the file is aligned on disk as well + as in memory; CRC calculation requires that. */ + FILL(0); + . = ALIGN(4); + _edata = .; + } > rom + .bss : { . = ALIGN(4); @@ -45,9 +60,6 @@ SECTIONS { *(.eh_frame) *(.comment) - *(.data .data.* .gnu.linkonce.d.*) - *(.data1) - *(.sdata .sdata.* .gnu.linkonce.s.*) } }