OSDN Git Service

add Simple Microblaze Microcontroler sample
[hos/hos-v4a.git] / sample / mb / smm / gcc / link.lds
1 ENTRY(_reset_handler)
2
3 MEMORY
4 {
5         ro     : o = 0x00000100, l = 0x00003f00
6         rw     : o = 0x00004000, l = 0x00004000
7 }
8
9 SECTIONS
10 {
11         .vectors.reset 0x00000000 :
12         {
13                 *(.vectors.reset)
14         }
15         .vectors.sw_exception 0x00000008 :
16         {
17                 *(.vectors.sw_exception)
18         }
19         .vectors.interrupt 0x00000010 :
20         {
21                 *(.vectors.interrupt)
22         }
23         .vectors.hw_exception 0x00000020 :
24         {
25                 *(.vectors.hw_exception)
26         }
27         
28         .text :
29         {
30                  ___text = . ; 
31                 *(.text)
32                 *(.strings)
33                 *(.rodata*)
34                 *(.glue*)
35                  ___text_end = . ; 
36         } > ro
37         .tors :
38         {
39                 . = ALIGN(4);
40                 ___ctors = . ;
41                 *(.ctors)
42                 ___ctors_end = . ;
43                 ___dtors = . ;
44                 *(.dtors)
45                 ___dtors_end = . ;
46         } > ro
47         data : AT (ADDR(.tors) + SIZEOF(.tors))
48         {
49             ___data_ro = ADDR(.tors) + SIZEOF(.tors);
50                 ___data = . ;
51                 *(.data)
52                 ___data_end = . ;
53         } > rw
54         .bss :
55         {
56                 ___bss = . ;
57                 *(.bss)
58                 *(COMMON)
59                 ___bss_end = . ;  
60         }  >rw
61 }
62