123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- /*
- * Pavel Kirienko, 2014 <pavel.kirienko@gmail.com>
- * Linker script for LPC11C24
- */
- MEMORY
- {
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 32K
- /* Notice RAM offset - this is needed for on-chip CCAN */
- RAM (rwx) : ORIGIN = 0x100000C0, LENGTH = 0x1F40
- }
- ENTRY(Reset_Handler)
- SECTIONS
- {
- . = 0;
- _text = .;
- startup :
- {
- KEEP(*(vectors))
- } > FLASH
- constructors : ALIGN(4) SUBALIGN(4)
- {
- PROVIDE(__init_array_start = .);
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- PROVIDE(__init_array_end = .);
- } > FLASH
- /* NO DESTRUCTORS */
- .text :
- {
- *(.text.startup.*)
- *(.text)
- *(.text.*)
- *(.rodata)
- *(.rodata.*)
- *(.glue_7t)
- *(.glue_7)
- *(.gcc*)
- } > FLASH
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } > FLASH
- .ARM.exidx : {
- PROVIDE(__exidx_start = .);
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- PROVIDE(__exidx_end = .);
- } > FLASH
- .eh_frame_hdr :
- {
- *(.eh_frame_hdr)
- } > FLASH
- .eh_frame : ONLY_IF_RO
- {
- *(.eh_frame)
- } > FLASH
- .textalign : ONLY_IF_RO
- {
- . = ALIGN(8);
- } > FLASH
- . = ALIGN(4);
- _etext = .;
- _textdata = _etext;
- .data :
- {
- . = ALIGN(4);
- PROVIDE(_data = .);
- *(.data)
- . = ALIGN(4);
- *(.data.*)
- . = ALIGN(4);
- *(.ramtext)
- . = ALIGN(4);
- PROVIDE(_edata = .);
- } > RAM AT > FLASH
- .bss :
- {
- . = ALIGN(4);
- PROVIDE(_bss = .);
- *(.bss)
- . = ALIGN(4);
- *(.bss.*)
- . = ALIGN(4);
- *(COMMON)
- . = ALIGN(4);
- PROVIDE(_ebss = .);
- } > RAM
- PROVIDE(__stack_end = ORIGIN(RAM) + LENGTH(RAM));
- }
|