Files
beaglefw/fw.ld
2013-06-21 22:14:11 +02:00

40 lines
714 B
Plaintext

SECTIONS
{
. = 0x80008000;
.init :
{
KEEP (*(SORT_NONE(.init)))
}
.plt : { *(.plt) }
.iplt : { *(.iplt) }
.text : {
/* startup.o (.text) */
*(.text)
}
.fini :
{
KEEP (*(SORT_NONE(.fini)))
}
.data : {
*(.rodata)
*(.data)
*(COMMON)
}
.bss (NOLOAD) : {
. = ALIGN(32 / 8);
__bss_start__ = .;
*(.bss)
__bss_end__ = . ;
}
. = ALIGN(64);
. = . + 0x200000; /* 2MiB stack should be enough... */
__stack = .;
. = . + 0x10000; /* 64KiB exception stack */
__stack_excp = .;
. = . + 0x10000; /* 64KiB interrupt stack */
__stack_int = .;
__heap_start = .; /* for _sbrk */
/* Rest until end of RAM is heap */
__heap_end = 0x90000000;
}