Permalink
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (50 sloc) 979 Bytes
OUTPUT_FORMAT("elf32-lm32")
ENTRY(_start)
__DYNAMIC = 0;
MEMORY {
flash : ORIGIN = 0x00860000, LENGTH = 0x20000 /* 128K */
sdram : ORIGIN = 0x44000000, LENGTH = 0x4000000 /* upper 64M of SDRAM */
}
SECTIONS
{
.text :
{
_ftext = .;
*(.text .stub .text.* .gnu.linkonce.t.*)
_etext = .;
} > flash
.rodata :
{
. = ALIGN(4);
_frodata = .;
*(.rodata .rodata.* .gnu.linkonce.r.*)
*(.rodata1)
_erodata = .;
} > flash
/* We shouldn't have a .data section, however the GNU crapchain whines if we don't */
.data :
{
. = ALIGN(4);
_fdata = .;
*(.data .data.* .gnu.linkonce.d.*)
*(.data1)
_gp = ALIGN(16);
*(.sdata .sdata.* .gnu.linkonce.s.*)
_edata = .;
} > flash
.bss :
{
. = ALIGN(4);
_fbss = .;
*(.dynsbss)
*(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.scommon)
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
_end = .;
} > sdram
}
PROVIDE(_fstack = ORIGIN(sdram) + LENGTH(sdram) - 4);