]> git.pld-linux.org Git - packages/crossarm-binutils.git/blob - crossarm-lpc2104.ld
up to 2.42
[packages/crossarm-binutils.git] / crossarm-lpc2104.ld
1 MEMORY
2 {
3         FLASH(rx)       : ORIGIN = 0x00000000, LENGTH = 120K
4         RAM(rw)         : ORIGIN = 0x40000000, LENGTH = 16K
5 }
6
7 __STACK_START__                 = 0x40000000 + 16K;
8
9 __UNDEFINED_STACK_SIZE__        = 0x0004;
10 __ABORT_STACK_SIZE__            = 0x0004;
11 __SUPERVISOR_STACK_SIZE__       = 0x0200;
12 __FIQ_STACK_SIZE__              = 0x0080;
13 __IRQ_STACK_SIZE__              = 0x0080;
14
15 __UNDEFINED_SP__                = __STACK_START__ - 4;
16 __ABORT_SP__                    = __UNDEFINED_SP__ - __UNDEFINED_STACK_SIZE__;
17 __SUPERVISOR_SP__               = __ABORT_SP__ - __ABORT_STACK_SIZE__;
18 __FIQ_SP__                      = __SUPERVISOR_SP__ - __SUPERVISOR_STACK_SIZE__;
19 __IRQ_SP__                      = __FIQ_SP__ - __FIQ_STACK_SIZE__;
20 __USER_SP__                     = __IRQ_SP__ - __IRQ_STACK_SIZE__;
21
22 SECTIONS
23 {
24         . = 0;
25         .text :
26         {
27                 __text_start__ = .;
28                 lpc210x-crt0.o(.text)
29                 *(.text)
30                 *(.glue_7)
31                 *(.glue_7t)
32         }
33         >FLASH =0xFF
34         . = ALIGN(4);
35         .rodata :
36         {
37                 *(.rodata)
38                 *(.rodata*)
39         }
40         >FLASH =0xFF
41         . = ALIGN(4);
42         __text_end__ = .;
43
44         .data : AT(__text_end__)
45         {
46                 __data_start__ = .;
47                 *(.data)
48         }
49         >RAM
50         . = ALIGN(4);
51         __data_end__ = .;
52
53         .bss :
54         {
55                 __bss_start__ = .;
56                 *(.bss)
57                 *(COMMON)
58         }
59         >RAM
60         . = ALIGN(4);
61         __bss_end__ = .;
62         _end = .;
63         PROVIDE (end = .);
64 }
65
66 PROVIDE(undefined_instruction_handler   = endless_loop);
67 PROVIDE(software_interrupt_handler      = endless_loop);
68 PROVIDE(prefetch_abort_handler          = endless_loop);
69 PROVIDE(data_abort_handler              = endless_loop);
70 PROVIDE(irq_handler                     = endless_loop);
71 PROVIDE(fiq_handler                     = endless_loop);
This page took 0.071456 seconds and 3 git commands to generate.