2 * LPC1768のFlash ROM上でプログラムを動かすための最低限度のLDファイル。
3 * 変数をSRAM上に配置する。Sourcery G++ 2010q1-188の
4 * Generic-m-hosted.ldを修正して使用。
7 OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
13 rom_vector (rwx) : ORIGIN = 0x00000000, LENGTH = 256
14 rom (rwx) : ORIGIN = 0x00000100, LENGTH = 511K
15 ram(rx) : ORIGIN = 0x10000000, LENGTH = 32K
19 PROVIDE(hardware_init_hook = 0);
20 PROVIDE(software_init_hook = 0);
21 PROVIDE(software_term_hook = 0);
27 _vector_start_lma = ALIGN(8);
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))
51 /* .ARM.exidx is sorted, so has to go in its own output section. */
52 PROVIDE_HIDDEN (__exidx_start = .);
55 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
58 PROVIDE_HIDDEN (__exidx_end = .);
62 *(.rodata .rodata.* .gnu.linkonce.r.*)
68 __preinit_array_start = .;
69 KEEP (*(.preinit_array))
70 __preinit_array_end = .;
73 __init_array_start = .;
74 KEEP (*(SORT(.init_array.*)))
82 __fini_array_start = .;
84 KEEP (*(SORT(.fini_array.*)))
88 KEEP (*crtbegin.o(.ctors))
89 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
90 KEEP (*(SORT(.ctors.*)))
91 KEEP (*crtend.o(.ctors))
94 KEEP (*crtbegin.o(.dtors))
95 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
96 KEEP (*(SORT(.dtors.*)))
97 KEEP (*crtend.o(.dtors))
103 __idata_start = ALIGN(8);
104 .data : AT (__idata_start )
111 *(.data .data.* .gnu.linkonce.d.*)
118 __idata_end = __idata_start + SIZEOF(.data);
124 *(.bss .bss.* .gnu.linkonce.b.*)
133 .stab 0 (NOLOAD) : { *(.stab) }
134 .stabstr 0 (NOLOAD) : { *(.stabstr) }
135 /* DWARF debug sections.
136 * Symbols in the DWARF debugging sections are relative to
137 * the beginning of the section so we begin them at 0.
140 .debug 0 : { *(.debug) }
141 .line 0 : { *(.line) }
142 /* GNU DWARF 1 extensions */
143 .debug_srcinfo 0 : { *(.debug_srcinfo) }
144 .debug_sfnames 0 : { *(.debug_sfnames) }
145 /* DWARF 1.1 and DWARF 2 */
146 .debug_aranges 0 : { *(.debug_aranges) }
147 .debug_pubnames 0 : { *(.debug_pubnames) }
149 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
150 .debug_abbrev 0 : { *(.debug_abbrev) }
151 .debug_line 0 : { *(.debug_line) }
152 .debug_frame 0 : { *(.debug_frame) }
153 .debug_str 0 : { *(.debug_str) }
154 .debug_loc 0 : { *(.debug_loc) }
155 .debug_macinfo 0 : { *(.debug_macinfo) }
157 .debug_ranges 0 : { *(.debug_ranges) }
158 /* SGI/MIPS DWARF 2 extensions */
159 .debug_weaknames 0 : { *(.debug_weaknames) }
160 .debug_funcnames 0 : { *(.debug_funcnames) }
161 .debug_typenames 0 : { *(.debug_typenames) }
162 .debug_varnames 0 : { *(.debug_varnames) }
164 .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
165 .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }
166 /DISCARD/ : { *(.note.GNU-stack) }