first commit, basic setup and makefile
[cortex-from-scratch] / link.ld
1 MEMORY
2 {
3         FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
4         SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
5 }
6
7 ENTRY(_start)
8
9 SECTIONS
10 {
11         .text : ALIGN(4)
12         {
13                 /* (.vector_table */ 
14                 *(.text)
15
16         } > FLASH
17         .data : 
18         {
19                 *(.data)
20         } > SRAM
21 }