You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
891 B

/*
* C linker script file for LPC1224
*/
MEMORY
{
sram (rwx) : ORIGIN = 0x10000000, LENGTH = 4k
flash (rx) : ORIGIN = 0x00000000, LENGTH = 32k
info (rx) : ORIGIN = 0x00040200, LENGTH = 1536
}
_sram_size = LENGTH(sram);
_sram_base = ORIGIN(sram);
/* Leave 32 bytes for IAP functions, see UM10441 Chapter 20, section 20.8 */
_end_stack = (_sram_base + _sram_size - 32);
ENTRY(Reset_Handler)
SECTIONS {
. = ORIGIN(flash);
.text :
{
FILL(0xFF);
KEEP(*(.vectors))
*(.text.Reset_Handler .text.system_init)
. = 0x000002FC;
KEEP(*(.crp))
. = 0x00000300;
*(.text*)
*(.rodata*)
*(.got*)
. = ALIGN(4);
_end_text = .;
} >flash
. = ALIGN(4);
.data :
{
_start_data = .;
*(.data*)
_end_data = .;
} >sram AT >flash
. = ALIGN(4);
.bss :
{
_start_bss = .;
*(.bss*)
*(COMMON)
_end_bss = .;
} >sram
. = ALIGN(4);
}
_end = .;
PROVIDE(end = .);