]> rtime.felk.cvut.cz Git - sysless.git/blob - board/h8300/h8canusb/libs/h8canusb.ld-bload
95a6a50e222a0e64b72931a92f94c06609e97530
[sysless.git] / board / h8300 / h8canusb / 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         /* Stabs debugging sections.  */
65         .stab          0 (NOLOAD): { *(.stab) }
66         .stabstr       0 (NOLOAD): { *(.stabstr) }
67         .stab.excl     0 (NOLOAD): { *(.stab.excl) }
68         .stab.exclstr  0 (NOLOAD): { *(.stab.exclstr) }
69         .stab.index    0 (NOLOAD): { *(.stab.index) }
70         .stab.indexstr 0 (NOLOAD): { *(.stab.indexstr) }
71         .comment       0 (NOLOAD): { *(.comment) }
72         /* DWARF debug sections.
73            Symbols in the DWARF debugging sections are relative to the beginning
74            of the section so we begin them at 0.  */
75         /* DWARF 1 */
76         .debug          0 (NOLOAD): { *(.debug) }
77         .line           0 (NOLOAD): { *(.line) }
78         /* GNU DWARF 1 extensions */
79         .debug_srcinfo  0 (NOLOAD): { *(.debug_srcinfo) }
80         .debug_sfnames  0 (NOLOAD): { *(.debug_sfnames) }
81         /* DWARF 1.1 and DWARF 2 */
82         .debug_aranges  0 (NOLOAD): { *(.debug_aranges) }
83         .debug_pubnames 0 (NOLOAD): { *(.debug_pubnames) }
84         /* DWARF 2 */
85         .debug_info     0 (NOLOAD): { *(.debug_info .gnu.linkonce.wi.*) }
86         .debug_abbrev   0 (NOLOAD): { *(.debug_abbrev) }
87         .debug_line     0 (NOLOAD): { *(.debug_line) }
88         .debug_frame    0 (NOLOAD): { *(.debug_frame) }
89         .debug_str      0 (NOLOAD): { *(.debug_str) }
90         .debug_loc      0 (NOLOAD): { *(.debug_loc) }
91         .debug_macinfo  0 (NOLOAD): { *(.debug_macinfo) }
92         /* SGI/MIPS DWARF 2 extensions */
93         .debug_weaknames 0 (NOLOAD): { *(.debug_weaknames) }
94         .debug_funcnames 0 (NOLOAD): { *(.debug_funcnames) }
95         .debug_typenames 0 (NOLOAD): { *(.debug_typenames) }
96         .debug_varnames  0 (NOLOAD): { *(.debug_varnames) }
97         /* DWARF 3 */
98         .debug_pubtypes 0 (NOLOAD): { *(.debug_pubtypes) }
99         .debug_ranges   0 (NOLOAD): { *(.debug_ranges) }
100         .gnu.attributes 0 (NOLOAD): { KEEP (*(.gnu.attributes)) }
101 }