1 /* Linker script for the MN10300 AM33/2.00 Panasonic ASB2305 Evaluation Board.
4 OUTPUT_FORMAT("elf32-mn10300", "elf32-mn10300",
8 GROUP(-lc -lcygmon -lgcc)
10 STARTUP(crt0_redboot.o)
12 /* Do we need any of these for elf?
16 /* Read-only sections, merged into text segment: */
17 /* Start of RAM (leaving room for RedBoot data) */
20 .interp : { *(.interp) }
22 .dynsym : { *(.dynsym) }
23 .dynstr : { *(.dynstr) }
24 .gnu.version : { *(.gnu.version) }
25 .gnu.version_d : { *(.gnu.version_d) }
26 .gnu.version_r : { *(.gnu.version_r) }
28 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
30 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
32 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
34 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
36 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
38 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
39 .rel.got : { *(.rel.got) }
40 .rela.got : { *(.rela.got) }
41 .rel.ctors : { *(.rel.ctors) }
42 .rela.ctors : { *(.rela.ctors) }
43 .rel.dtors : { *(.rel.dtors) }
44 .rela.dtors : { *(.rela.dtors) }
45 .rel.init : { *(.rel.init) }
46 .rela.init : { *(.rela.init) }
47 .rel.fini : { *(.rel.fini) }
48 .rela.fini : { *(.rela.fini) }
49 .rel.bss : { *(.rel.bss) }
50 .rela.bss : { *(.rela.bss) }
51 .rel.plt : { *(.rel.plt) }
52 .rela.plt : { *(.rela.plt) }
53 .init : { *(.init) } =0
58 /* .gnu.warning sections are handled specially by elf32.em. */
65 .fini : { *(.fini) } =0
66 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
67 .rodata1 : { *(.rodata1) }
68 /* Adjust the address for the data segment. We want to adjust up to
69 the same address within the page on the next page up. */
70 . = ALIGN(1) + (. & (1 - 1));
77 .data1 : { *(.data1) }
81 KEEP(*crtbegin.o(.ctors))
82 KEEP(*(SORT(.ctors.*)))
89 KEEP(*crtbegin.o(.dtors))
90 KEEP(*(SORT(.dtors.*)))
94 .got : { *(.got.plt) *(.got) }
95 .dynamic : { *(.dynamic) }
96 /* We want the small data sections together, so single-instruction offsets
97 can access them all, and initialized data all before uninitialized, so
98 we can shorten the on-disk segment size. */
99 .sdata : { *(.sdata) }
103 .sbss : { *(.sbss) *(.scommon) }
112 /* Stabs debugging sections. */
113 .stab 0 : { *(.stab) }
114 .stabstr 0 : { *(.stabstr) }
115 .stab.excl 0 : { *(.stab.excl) }
116 .stab.exclstr 0 : { *(.stab.exclstr) }
117 .stab.index 0 : { *(.stab.index) }
118 .stab.indexstr 0 : { *(.stab.indexstr) }
119 .comment 0 : { *(.comment) }
120 /* DWARF debug sections.
121 Symbols in the DWARF debugging sections are relative to the beginning
122 of the section so we begin them at 0. */
124 .debug 0 : { *(.debug) }
125 .line 0 : { *(.line) }
126 /* GNU DWARF 1 extensions */
127 .debug_srcinfo 0 : { *(.debug_srcinfo) }
128 .debug_sfnames 0 : { *(.debug_sfnames) }
129 /* DWARF 1.1 and DWARF 2 */
130 .debug_aranges 0 : { *(.debug_aranges) }
131 .debug_pubnames 0 : { *(.debug_pubnames) }
133 .debug_info 0 : { *(.debug_info) }
134 .debug_abbrev 0 : { *(.debug_abbrev) }
135 .debug_line 0 : { *(.debug_line) }
136 .debug_frame 0 : { *(.debug_frame) }
137 .debug_str 0 : { *(.debug_str) }
138 .debug_loc 0 : { *(.debug_loc) }
139 .debug_macinfo 0 : { *(.debug_macinfo) }
140 /* SGI/MIPS DWARF 2 extensions */
141 .debug_weaknames 0 : { *(.debug_weaknames) }
142 .debug_funcnames 0 : { *(.debug_funcnames) }
143 .debug_typenames 0 : { *(.debug_typenames) }
144 .debug_varnames 0 : { *(.debug_varnames) }
146 /* Top of usable RAM is 0x91000000 */
147 .stack 0x91000000 : { _stack = .; *(.stack) *(._stack) }
149 /* These must appear regardless of . */