software/bios/linker: revert data section since required by RISC-V compiler

This commit is contained in:
Florent Kermarrec 2018-07-18 09:30:14 +02:00
parent 55dd58b023
commit 85308672d3
1 changed files with 15 additions and 3 deletions

View File

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