1 /* linker script for inteligent boot block (for user-program-mode boot-loader in flash) */
3 INCLUDE "h8canusb.ld-cfg"
5 PROVIDE( ___stack_top = ( __iram0_end & ~ 3 ) - 4 );
6 /*PROVIDE( ___setup_board = _start);*/
10 INPUT(bsp0hwinit.o setup_board.o)
16 ___flashbb_vector = . ;
17 LONG( ABSOLUTE( ___setup_board ) )
31 *(EXCLUDE_FILE(*boot_fn.o) .text)
32 *(EXCLUDE_FILE(*boot_fn.o) .rodata)
33 *(EXCLUDE_FILE(*boot_fn.o) .text .stub .text.* .gnu.linkonce.t.*)
34 *(EXCLUDE_FILE(*boot_fn.o) .rodata .rodata.* .gnu.linkonce.r.*)
35 *(EXCLUDE_FILE(*boot_fn.o) .strings)
37 _etext = ALIGN( 0x4 ) ;
42 ___boot_fn_start = ALIGN( 0x4 ) ;
43 KEEP (boot_fn.o(.text))
44 KEEP (boot_fn.o(.rodata))
45 KEEP (boot_fn.o(.strings))
47 ___boot_fn_end = ALIGN( 0x4 ) ;
48 } > bloader AT>flashbb
59 ___data_lma = ALIGN( 0x4 ) ;
60 } > flashbb /*at> flashusr*/
63 AT ( ADDR( .tors ) + SIZEOF( .tors ) )
68 _edata = ALIGN( 0x4 ) ;
71 /* ___data_lma = LOADADDR(.data) ; */
75 _bss_start = ALIGN( 0x10 ) ;
87 /* Stabs debugging sections. */
88 .stab 0 (NOLOAD): { *(.stab) }
89 .stabstr 0 (NOLOAD): { *(.stabstr) }
90 .stab.excl 0 (NOLOAD): { *(.stab.excl) }
91 .stab.exclstr 0 (NOLOAD): { *(.stab.exclstr) }
92 .stab.index 0 (NOLOAD): { *(.stab.index) }
93 .stab.indexstr 0 (NOLOAD): { *(.stab.indexstr) }
94 .comment 0 (NOLOAD): { *(.comment) }
95 /* DWARF debug sections.
96 Symbols in the DWARF debugging sections are relative to the beginning
97 of the section so we begin them at 0. */
99 .debug 0 (NOLOAD): { *(.debug) }
100 .line 0 (NOLOAD): { *(.line) }
101 /* GNU DWARF 1 extensions */
102 .debug_srcinfo 0 (NOLOAD): { *(.debug_srcinfo) }
103 .debug_sfnames 0 (NOLOAD): { *(.debug_sfnames) }
104 /* DWARF 1.1 and DWARF 2 */
105 .debug_aranges 0 (NOLOAD): { *(.debug_aranges) }
106 .debug_pubnames 0 (NOLOAD): { *(.debug_pubnames) }
108 .debug_info 0 (NOLOAD): { *(.debug_info .gnu.linkonce.wi.*) }
109 .debug_abbrev 0 (NOLOAD): { *(.debug_abbrev) }
110 .debug_line 0 (NOLOAD): { *(.debug_line) }
111 .debug_frame 0 (NOLOAD): { *(.debug_frame) }
112 .debug_str 0 (NOLOAD): { *(.debug_str) }
113 .debug_loc 0 (NOLOAD): { *(.debug_loc) }
114 .debug_macinfo 0 (NOLOAD): { *(.debug_macinfo) }
115 /* SGI/MIPS DWARF 2 extensions */
116 .debug_weaknames 0 (NOLOAD): { *(.debug_weaknames) }
117 .debug_funcnames 0 (NOLOAD): { *(.debug_funcnames) }
118 .debug_typenames 0 (NOLOAD): { *(.debug_typenames) }
119 .debug_varnames 0 (NOLOAD): { *(.debug_varnames) }
121 .debug_pubtypes 0 (NOLOAD): { *(.debug_pubtypes) }
122 .debug_ranges 0 (NOLOAD): { *(.debug_ranges) }
123 .gnu.attributes 0 (NOLOAD): { KEEP (*(.gnu.attributes)) }