forked from microbuilder/LPC810_CodeBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblinky.ld
More file actions
43 lines (39 loc) · 717 Bytes
/
blinky.ld
File metadata and controls
43 lines (39 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* generic gcc linker script for LPC810
* Kamal Mostafa <[email protected]>.
*
* License: Public Domain
*/
MEMORY
{
/* NXP LPC810 */
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00001000 /* 4 Kbytes */
RAM (rwx) : ORIGIN = 0x10000000, LENGTH = 0x00000400 /* 1 Kbyte */
}
SECTIONS
{
.text :
{
_text = .;
KEEP(*(.isr_vector))
KEEP(*(.after_vectors))
*(.text*)
*(.rodata*)
. = ALIGN(4);
_etext = .;
} > FLASH
.data : AT (_etext)
{
_data = .;
*(vtable)
*(.data*)
_edata = .;
} > RAM
.bss :
{
_bss = .;
*(.bss*)
*(COMMON)
_ebss = .;
} > RAM
}