litex/software/bios/linker.ld

55 lines
852 B
Plaintext
Raw Normal View History

INCLUDE generated/output_format.ld
2012-02-05 14:01:28 -05:00
ENTRY(_start)
INCLUDE generated/regions.ld
2012-02-05 14:01:28 -05:00
SECTIONS
{
.text :
{
_ftext = .;
*(.text .stub .text.* .gnu.linkonce.t.*)
_etext = .;
2013-05-28 10:15:17 -04:00
} > rom
2012-02-05 14:01:28 -05:00
.rodata :
{
. = ALIGN(4);
_frodata = .;
*(.rodata .rodata.* .gnu.linkonce.r.*)
*(.rodata1)
/* Make sure the file is aligned on disk as well
as in memory; CRC calculation requires that. */
FILL(0);
2012-02-05 14:01:28 -05:00
. = ALIGN(4);
_erodata = .;
2013-05-28 10:15:17 -04:00
} > rom
2012-02-05 14:01:28 -05:00
.bss :
{
. = ALIGN(4);
_fbss = .;
*(.dynsbss)
*(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.scommon)
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
_end = .;
} > sram
/DISCARD/ :
{
*(.eh_frame)
*(.comment)
*(.data .data.* .gnu.linkonce.d.*)
*(.data1)
*(.sdata .sdata.* .gnu.linkonce.s.*)
}
2012-02-05 14:01:28 -05:00
}
PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram) - 4);