]> rtime.felk.cvut.cz Git - sysless.git/blob - board/h8300/h8eurobot/libs/h8canusb.ld-bload
Other parts of h8eurobot suport.
[sysless.git] / board / h8300 / h8eurobot / libs / h8canusb.ld-bload
1 /* linker script for inteligent boot block (hardwired boot mode) */
2
3 INCLUDE "h8canusb.ld-cfg"
4
5 PROVIDE( ___stack_top = ( __iram0_end & ~ 3 ) - 4 );
6
7 INPUT(bsp0common.o)
8
9 SECTIONS
10 {
11         .text :
12         {
13           text_start = . ;
14 /*        KEEP (crt0.o(.text))*/
15           *(EXCLUDE_FILE(*boot_fn.o) .text)
16           *(EXCLUDE_FILE(*boot_fn.o) .rodata)                           
17           *(.strings)
18           . = ALIGN( 4 ) ;
19           ___boot_fn_start = ALIGN( 0x4 ) ;
20           KEEP (*boot_fn.o(.text))
21           KEEP (*boot_fn.o(.rodata))
22           . = ALIGN( 4 ) ;
23           ___boot_fn_end = ALIGN( 0x4 ) ;
24           . = ALIGN( 0x4 ) ;
25           _etext = ALIGN( 0x4 ) ;
26         } > bloader
27
28         .shadreg (NOLOAD) :
29         {
30           *(.shadreg)
31           . = ALIGN( 0x4 ) ;
32         } > iram0
33
34         .tors : 
35         {
36           ___ctors = . ;
37           *(.ctors)
38           ___ctors_end = . ;
39           ___dtors = . ;
40           *(.dtors)
41           ___dtors_end = . ;
42           . = ALIGN( 0x4 ) ;
43         }  > bloader
44
45         .data :
46         {
47           ___data_lma = . ;
48           _data_start = . ;
49           *(.data)
50           . = ALIGN( 0x4 ) ;
51           _edata = ALIGN( 0x4 ) ;
52         } > bloader
53         
54         .bss : 
55         {
56           . = ALIGN( 0x4 ) ;
57           _bss_start = ALIGN( 0x4 ) ;
58           *(.bss)
59           *(COMMON)
60           . = ALIGN( 0x4 ) ;
61           _end =  ALIGN( 0x4 ) ; ;
62         } > bloader
63         
64         .stab  0 (NOLOAD) : 
65         {
66           [ .stab ]
67         }
68
69         .stabstr  0 (NOLOAD) :
70         {
71           [ .stabstr ]
72         }
73 }