OSDN Git Service

update jelly sample (MIPS)
[hos/hos-v4a.git] / sample / arm / stm32f103 / gcc / link.lds
1 OUTPUT_ARCH(arm)
2 ENTRY(_kernel_reset_handler)
3
4 MEMORY
5 {
6         vector : o = 0x08000000, l = 0x00001000
7         ro     : o = 0x08001000, l = 0x000ff000
8         rw     : o = 0x20000000, l = 0x00005000
9 }
10
11 SECTIONS
12 {
13         .vector :
14         {
15                 ___vector = . ; 
16                 */kernel_vct.o(.data)
17                 */kernel_vct.o(.rodata*)
18                 FILL(0xff)
19                 ___vector_end = . ; 
20         } > vector
21         .text :
22         {
23                  ___text = . ; 
24                 *(.text)
25                 *(.strings)
26                 *(.rodata*)
27                 *(.glue*)
28                  ___text_end = . ; 
29         }  > ro
30         .tors :
31         {
32                 . = ALIGN(4);
33                 ___ctors = . ;
34                 *(.ctors)
35                 ___ctors_end = . ;
36                 ___dtors = . ;
37                 *(.dtors)
38                 ___dtors_end = . ;
39         } > ro
40         data : AT (ADDR(.tors) + SIZEOF(.tors))
41         {
42             ___data_rom = ADDR(.tors) + SIZEOF(.tors);
43                 ___data = . ;
44                 *(.data)
45                 ___data_end = . ;
46         } > rw
47         .bss :
48         {
49                 ___bss = . ;
50                 *(.bss)
51                 *(COMMON)
52                 ___bss_end = . ;  
53         }  >rw
54 }
55