X-Git-Url: http://git.asbjorn.biz/?p=rapper.git;a=blobdiff_plain;f=bitbucket_lpc1768%2FLPC1768-flash.ld;fp=bitbucket_lpc1768%2FLPC1768-flash.ld;h=68d07edbef477964d763c93119a8b25e04d94ddf;hp=0000000000000000000000000000000000000000;hb=4c765357d3685985fea2c360e681025c772e0472;hpb=81d357a0d5a52c468daa3b088028b04eb8b25db5 diff --git a/bitbucket_lpc1768/LPC1768-flash.ld b/bitbucket_lpc1768/LPC1768-flash.ld new file mode 100644 index 0000000..68d07ed --- /dev/null +++ b/bitbucket_lpc1768/LPC1768-flash.ld @@ -0,0 +1,50 @@ +/* + * This is the NXP LPC1768 linker file for code running from flash. + * + * TODO: + * - handle the exotic input sections (e.g. glue and veneer, C++ sections) + * - add additional Ethernet and USB RAM memory regions (2x16k) + * - add boot ROM memory regions + * + * See also: http://bitbucket.org/jpc/lpc1768/ + * + * Copyright (c) 2010 LoEE - Jakub Piotr Cłapa + * This program is released under the new BSD license. + */ +OUTPUT_FORMAT("elf32-littlearm") +OUTPUT_ARCH(arm) + +ENTRY(Reset_Handler) + +MEMORY { + flash (rx) : ORIGIN = 0x00000000, LENGTH = 512K + ram (rwx) : ORIGIN = 0x10000000, LENGTH = 32K +} + +SECTIONS { + . = 0; + + .text : { + _stext = .; + KEEP(*(.cs3.interrupt_vector)) + *(.text*) + *(.rodata*) + . = ALIGN(4); + _etext = .; + } > flash + + .data : { + _sdata = .; + *(.data*) + _edata = .; + } > ram AT > flash + + .bss : { + _sbss = .; + *(.bss*) + . = ALIGN(4); + _ebss = .; + } > ram + + _sstack = ORIGIN(ram) + LENGTH(ram); +}