1 /* linker script for applications running from FLASH */
3 INCLUDE "hi_cpu2.ld-cfg"
5 /* PROVIDE ( sym = val ); */
7 PROVIDE( ___stack_top = ( __iram0_end & ~ 3 ) - 4 );
8 PROVIDE( ___heap_end = __ram_end );
19 LONG( ABSOLUTE( _start ) + 0x5a000000 ) /* JMP _start */
20 /* KEEP (crt0.o(.text)) */
22 ___boot_fn_start = ALIGN( 0x4 ) ;
23 KEEP (*boot_fn.o(.text))
24 KEEP (*boot_fn.o(.rodata))
26 ___boot_fn_end = ALIGN( 0x4 ) ;
27 *(.text .stub .text.* .gnu.linkonce.t.*)
28 *(.rodata .rodata.* .gnu.linkonce.r.*)
30 ___nls_str_start = ALIGN( 0x4 ) ;
32 ___nls_str_end = ALIGN( 0x4 ) ;
34 _etext = ALIGN( 0x10 ) ;
52 ___data_lma = ALIGN( 0x10 ) ;
56 AT ( ADDR( .tors ) + SIZEOF( .tors ) )
61 _edata = ALIGN( 0x4 ) ;
62 } > ram /*at> flashusr*/
64 /* ___data_lma = LOADADDR(.data) ; */
68 _bss_start = ALIGN( 0x10 ) ;
85 /* Stabs debugging sections. */
86 .stab 0 (NOLOAD): { *(.stab) }
87 .stabstr 0 (NOLOAD): { *(.stabstr) }
88 .stab.excl 0 (NOLOAD): { *(.stab.excl) }
89 .stab.exclstr 0 (NOLOAD): { *(.stab.exclstr) }
90 .stab.index 0 (NOLOAD): { *(.stab.index) }
91 .stab.indexstr 0 (NOLOAD): { *(.stab.indexstr) }
92 .comment 0 (NOLOAD): { *(.comment) }
93 /* DWARF debug sections.
94 Symbols in the DWARF debugging sections are relative to the beginning
95 of the section so we begin them at 0. */
97 .debug 0 (NOLOAD): { *(.debug) }
98 .line 0 (NOLOAD): { *(.line) }
99 /* GNU DWARF 1 extensions */
100 .debug_srcinfo 0 (NOLOAD): { *(.debug_srcinfo) }
101 .debug_sfnames 0 (NOLOAD): { *(.debug_sfnames) }
102 /* DWARF 1.1 and DWARF 2 */
103 .debug_aranges 0 (NOLOAD): { *(.debug_aranges) }
104 .debug_pubnames 0 (NOLOAD): { *(.debug_pubnames) }
106 .debug_info 0 (NOLOAD): { *(.debug_info .gnu.linkonce.wi.*) }
107 .debug_abbrev 0 (NOLOAD): { *(.debug_abbrev) }
108 .debug_line 0 (NOLOAD): { *(.debug_line) }
109 .debug_frame 0 (NOLOAD): { *(.debug_frame) }
110 .debug_str 0 (NOLOAD): { *(.debug_str) }
111 .debug_loc 0 (NOLOAD): { *(.debug_loc) }
112 .debug_macinfo 0 (NOLOAD): { *(.debug_macinfo) }
113 /* SGI/MIPS DWARF 2 extensions */
114 .debug_weaknames 0 (NOLOAD): { *(.debug_weaknames) }
115 .debug_funcnames 0 (NOLOAD): { *(.debug_funcnames) }
116 .debug_typenames 0 (NOLOAD): { *(.debug_typenames) }
117 .debug_varnames 0 (NOLOAD): { *(.debug_varnames) }
119 .debug_pubtypes 0 (NOLOAD): { *(.debug_pubtypes) }
120 .debug_ranges 0 (NOLOAD): { *(.debug_ranges) }
121 .gnu.attributes 0 (NOLOAD): { KEEP (*(.gnu.attributes)) }