2 * LPC4330のSRAM上でプログラムを動かすための最低限度のLDファイル。
3 * すべての資源をSRAM上に配置する。Sourcery G++ 2010q1-188の
4 * Generic-m-hosted.ldを修正して使用。
7 OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
13 ram (rx) : ORIGIN = 0x10000000, LENGTH = 96K
17 /* Provide fall-back values */
18 PROVIDE( __data_start = 0x0 ); /* 以下の3シンボルはダミーだが、0でなければならない */
19 PROVIDE( __idata_start = 0x0 );
20 PROVIDE( __idata_end = 0x0 );
21 PROVIDE( _vector_start = 0x0 ); /* SRAM版とROM版でコードを共有するためのダミー*/
22 PROVIDE( _vector_end = 0x0 );
25 PROVIDE(hardware_init_hook = 0);
26 PROVIDE(software_init_hook = 0);
27 PROVIDE(software_term_hook = 0);
35 _vector_start_lma = .;
36 *( .vector ) /* RAM領域の先頭に割り当てているのは、 256byte境界を守るため */
37 *(.text .text.* .gnu.linkonce.t.*)
40 *(.glue_7t) *(.glue_7) *(.vfp11_veneer)
42 *(.ARM.extab* .gnu.linkonce.armextab.*)
46 .eh_frame_hdr : ALIGN (4)
48 KEEP (*(.eh_frame_hdr))
56 /* .ARM.exidx is sorted, so has to go in its own output section. */
57 PROVIDE_HIDDEN (__exidx_start = .);
60 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
63 PROVIDE_HIDDEN (__exidx_end = .);
66 *(.rodata .rodata.* .gnu.linkonce.r.*)
72 __preinit_array_start = .;
73 KEEP (*(.preinit_array))
74 __preinit_array_end = .;
77 __init_array_start = .;
78 KEEP (*(SORT(.init_array.*)))
86 __fini_array_start = .;
88 KEEP (*(SORT(.fini_array.*)))
92 KEEP (*crtbegin.o(.ctors))
93 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
94 KEEP (*(SORT(.ctors.*)))
95 KEEP (*crtend.o(.ctors))
98 KEEP (*crtbegin.o(.dtors))
99 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
100 KEEP (*(SORT(.dtors.*)))
101 KEEP (*crtend.o(.dtors))
112 *(.data .data.* .gnu.linkonce.d.*)
122 *(.bss .bss.* .gnu.linkonce.b.*)
131 .stab 0 (NOLOAD) : { *(.stab) }
132 .stabstr 0 (NOLOAD) : { *(.stabstr) }
133 /* DWARF debug sections.
134 * Symbols in the DWARF debugging sections are relative to
135 * the beginning of the section so we begin them at 0.
138 .debug 0 : { *(.debug) }
139 .line 0 : { *(.line) }
140 /* GNU DWARF 1 extensions */
141 .debug_srcinfo 0 : { *(.debug_srcinfo) }
142 .debug_sfnames 0 : { *(.debug_sfnames) }
143 /* DWARF 1.1 and DWARF 2 */
144 .debug_aranges 0 : { *(.debug_aranges) }
145 .debug_pubnames 0 : { *(.debug_pubnames) }
147 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
148 .debug_abbrev 0 : { *(.debug_abbrev) }
149 .debug_line 0 : { *(.debug_line) }
150 .debug_frame 0 : { *(.debug_frame) }
151 .debug_str 0 : { *(.debug_str) }
152 .debug_loc 0 : { *(.debug_loc) }
153 .debug_macinfo 0 : { *(.debug_macinfo) }
155 .debug_ranges 0 : { *(.debug_ranges) }
156 /* SGI/MIPS DWARF 2 extensions */
157 .debug_weaknames 0 : { *(.debug_weaknames) }
158 .debug_funcnames 0 : { *(.debug_funcnames) }
159 .debug_typenames 0 : { *(.debug_typenames) }
160 .debug_varnames 0 : { *(.debug_varnames) }
162 .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
163 .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
164 /DISCARD/ : { *(.note.GNU-stack) }