1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-10 07:30:14 +02:00
nn-usb-fpga/lm32/logic/sakc/firmware/cain_loader/linker.ld

60 lines
938 B
Plaintext
Raw Normal View History

2010-10-12 17:05:52 +03:00
OUTPUT_FORMAT("elf32-lm32")
ENTRY(_start)
__DYNAMIC = 0;
2010-10-13 16:49:36 +03:00
_BRAM_START = 0x00000000;
_BRAM_SIZE = 0x1000;
_BRAM_END = _BRAM_START + _BRAM_SIZE;
2010-10-12 17:05:52 +03:00
MEMORY {
2010-10-13 16:49:36 +03:00
bram : ORIGIN = 0x00000000, LENGTH = 0x1000 /* 4k */
2010-10-12 17:05:52 +03:00
}
SECTIONS
{
.text :
{
_ftext = .;
*(.text .stub .text.* .gnu.linkonce.t.*)
_etext = .;
2010-10-13 16:49:36 +03:00
} > bram
2010-10-12 17:05:52 +03:00
.rodata :
{
. = ALIGN(4);
_frodata = .;
*(.rodata .rodata.* .gnu.linkonce.r.*)
*(.rodata1)
_erodata = .;
2010-10-13 16:49:36 +03:00
} > bram
2010-10-12 17:05:52 +03:00
.data :
{
. = ALIGN(4);
_fdata = .;
*(.data .data.* .gnu.linkonce.d.*)
*(.data1)
_gp = ALIGN(16);
*(.sdata .sdata.* .gnu.linkonce.s.*)
_edata = .;
2010-10-13 16:49:36 +03:00
} > bram
2010-10-12 17:05:52 +03:00
.bss :
{
. = ALIGN(4);
_fbss = .;
*(.dynsbss)
*(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.scommon)
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
_ebss = .;
_end = .;
2010-10-13 16:49:36 +03:00
} > bram
2010-10-12 17:05:52 +03:00
}
2010-10-13 16:49:36 +03:00
PROVIDE(_fstack = ORIGIN(bram) + LENGTH(bram) - 4);