GodMode9/link.ld
Wolfvak d50c45ff23 Enable MPU and caches on the exception handler
An (uncachable) background region makes sure no bad accesses get caught
2017-09-19 15:25:00 +02:00

24 lines
570 B
Plaintext

OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = 0x23F00000;
__start__ = ABSOLUTE(.);
.text.start : ALIGN(4) { *(.text.start) }
.text : ALIGN(4) { *(.text*) }
.rodata : ALIGN(4) { *(.rodata*) }
.data : ALIGN(4) { *(.data*) }
.bss : ALIGN(4) { __bss_start = .; *(.bss* COMMON); __bss_end = .;}
. = ALIGN(4);
__end__ = ABSOLUTE(.);
__stack_abt = __start__;
__stack_top = __start__ - 0x80000;
__code_size__ = __end__ - __start__;
}