betty.c - first test fw to writo to flash bank0
[my-code/arm.git] / betty / lpc2220_rom.ld
1 /*
2  * lpc2220_rom.ld - linker script for the lpc2220 device (->rom)
3  *
4  * author: hackbard@hackdaworld.org
5  *
6  */
7
8 /* memory definitions */
9
10 MEMORY {
11         FLASH_BANK0 (rx) : ORIGIN = 0x80000000, LENGTH = 0x00100000
12         FLASH_BANK2 (rx) : ORIGIN = 0x82000000, LENGTH = 0x00100000
13         RAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00010000
14 }
15
16 /* section definitions */
17
18 SECTIONS {
19         
20         /* startup and user code (.text) */
21         .text : {
22                 startup.o(.text)
23                 *(.text)
24                 *(.glue_7)
25                 *(.glue_7t)
26         } > FLASH_BANK0
27
28         . = ALIGN(4);
29
30         /* read only data */
31         .rodata : { *(.rodata*) } > FLASH_BANK0
32
33         . = ALIGN(4);
34
35         /* initialized data */
36         .data : { *(.data) } > RAM
37
38         . = ALIGN(4);
39
40         /* uninitialized data */
41         .bss : { *(.bss) } > RAM
42 }
43