]> rtime.felk.cvut.cz Git - sysless.git/blob - board/h8300/h8mirosot/libs/h8canusb.ld-ram
Added ram linker script for mirosot board.
[sysless.git] / board / h8300 / h8mirosot / libs / h8canusb.ld-ram
1 /* linker script for applications running from RAM */
2
3 INCLUDE "h8canusb.ld-cfg"
4
5 /* SEARCH_DIR(/HDA8/root/h8300/id_cpu1/test1/../lib); */
6
7 /* PROVIDE ( sym = val ); */
8
9 PROVIDE( ___stack_top = ( __iram0_end & ~ 3 ) - 4 );
10 PROVIDE( ___heap_end = __ram_end );
11
12 STARTUP(crt0.o)
13
14 SECTIONS
15 {
16         .text :
17         {
18           . = ALIGN( 4 ) ;
19           text_start = . ;
20           LONG( ABSOLUTE( _start ) + 0x5a000000 ) /* JMP _start */
21 /*        KEEP (crt0.o(.text)) */
22           . = ALIGN( 4 ) ;
23           ___boot_fn_start = ALIGN( 0x4 ) ;
24           KEEP (*boot_fn.o(.text))
25           KEEP (*boot_fn.o(.rodata))
26           . = ALIGN( 4 ) ;
27           ___boot_fn_end = ALIGN( 0x4 ) ;
28           *(.text)
29           *(.rodata)    
30           . = ALIGN( 4 ) ;
31           ___nls_str_start = ALIGN( 0x4 ) ;
32           *(.nls_str)                           
33           ___nls_str_end = ALIGN( 0x4 ) ;
34           *(.strings)
35           . = ALIGN( 0x4 ) ;
36           _etext = ALIGN( 0x4 ) ;
37         } > ram
38
39         .tors : 
40         {
41           ___ctors = . ;
42           *(.ctors)
43           ___ctors_end = . ;
44           ___dtors = . ;
45           *(.dtors)
46           ___dtors_end = . ;
47           . = ALIGN( 0x4 ) ;
48         }  > ram
49
50         .data :
51         {
52           ___data_lma = . ;
53           _data_start = . ;
54           *(.data)
55           . = ALIGN( 0x4 ) ;
56           _edata = ALIGN( 0x4 ) ;
57         } > ram
58
59         .bss :
60         {
61           . =  ALIGN( 0x10 ) ;
62           _bss_start = ALIGN( 0x10 ) ;
63           *(.bss)
64           *(COMMON)
65           . = ALIGN( 0x4 ) ;
66           _end = ALIGN( 0x4 ) ;
67         } > ram
68
69         .tiny : 
70         {
71           *(.tiny)
72         }  > iram0
73         
74         .eight : 
75         {
76           *(.eight)
77         }  > eight
78
79         .stab  0 (NOLOAD) : 
80         {
81           [ .stab ]
82         }
83
84         .stabstr  0 (NOLOAD) :
85         {
86           [ .stabstr ]
87         }
88 }