OSDN Git Service

add I2C command
[hos/hos-v4a.git] / sample / arm / lpc2000 / gcc / linkext.lds
1 OUTPUT_ARCH(arm)
2 ENTRY(_reset_handler)
3
4 MEMORY
5 {
6         vector : o = 0x80000000, l = 0x00000040
7         rom    : o = 0x80000040, l = 0x0000ffc0
8         ram    : o = 0x80010000, l = 0x00002000
9 }
10
11 SECTIONS
12 {
13         .vector :
14         {
15                 ___vector = . ; 
16                 */vectors.o(.text)
17                 FILL(0xff)
18                 ___vector_end = . ; 
19         } > vector
20         .text :
21         {
22                  ___text = . ; 
23                 *(.text)
24                 *(.strings)
25                 *(.rodata*)
26                 *(.glue*)
27                  ___text_end = . ; 
28         }  > rom
29         .tors :
30         {
31                 . = ALIGN(4);
32                 ___ctors = . ;
33                 *(.ctors)
34                 ___ctors_end = . ;
35                 ___dtors = . ;
36                 *(.dtors)
37                 ___dtors_end = . ;
38         } > rom
39         data : AT (ADDR(.tors) + SIZEOF(.tors))
40         {
41             ___data_rom = ADDR(.tors) + SIZEOF(.tors);
42                 ___data = . ;
43                 *(.data)
44                 ___data_end = . ;
45         } > ram
46         .bss :
47         {
48                 ___bss = . ;
49                 *(.bss)
50                 *(COMMON)
51                 ___bss_end = . ;  
52         }  >ram
53 }
54