1 /* Linker script for the MN10200 simulator. */
3 OUTPUT_FORMAT("elf32-mn10200", "elf32-mn10200",
7 GROUP(-lc -leval -lgcc)
9 /* Do we need any of these for elf?
13 /* Read-only sections, merged into text segment: */
16 .interp : { *(.interp) }
18 .dynsym : { *(.dynsym) }
19 .dynstr : { *(.dynstr) }
20 .gnu.version : { *(.gnu.version) }
21 .gnu.version_d : { *(.gnu.version_d) }
22 .gnu.version_r : { *(.gnu.version_r) }
24 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
26 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
28 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
30 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
32 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
34 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
35 .rel.got : { *(.rel.got) }
36 .rela.got : { *(.rela.got) }
37 .rel.ctors : { *(.rel.ctors) }
38 .rela.ctors : { *(.rela.ctors) }
39 .rel.dtors : { *(.rel.dtors) }
40 .rela.dtors : { *(.rela.dtors) }
41 .rel.init : { *(.rel.init) }
42 .rela.init : { *(.rela.init) }
43 .rel.fini : { *(.rel.fini) }
44 .rela.fini : { *(.rela.fini) }
45 .rel.bss : { *(.rel.bss) }
46 .rela.bss : { *(.rela.bss) }
47 .rel.plt : { *(.rel.plt) }
48 .rela.plt : { *(.rela.plt) }
49 .init : { *(.init) } =0
55 /* .gnu.warning sections are handled specially by elf32.em. */
61 .fini : { *(.fini) } =0
62 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
63 .rodata1 : { *(.rodata1) }
64 /* Adjust the address for the data segment. We want to adjust up to
65 the same address within the page on the next page up. */
66 . = ALIGN(1) + (. & (1 - 1));
73 .data1 : { *(.data1) }
77 /* gcc uses crtbegin.o to find the start of the constructors, so
78 we make sure it is first. Because this is a wildcard, it
79 doesn't matter if the user does not actually link against
80 crtbegin.o; the linker won't look for a file to match a
81 wildcard. The wildcard also means that it doesn't matter which
82 directory crtbegin.o is in. */
96 .got : { *(.got.plt) *(.got) }
97 .dynamic : { *(.dynamic) }
98 /* We want the small data sections together, so single-instruction offsets
99 can access them all, and initialized data all before uninitialized, so
100 we can shorten the on-disk segment size. */
101 .sdata : { *(.sdata) }
105 .sbss : { *(.sbss) *(.scommon) }
115 /* Stabs debugging sections. */
116 .stab 0 : { *(.stab) }
117 .stabstr 0 : { *(.stabstr) }
118 .stab.excl 0 : { *(.stab.excl) }
119 .stab.exclstr 0 : { *(.stab.exclstr) }
120 .stab.index 0 : { *(.stab.index) }
121 .stab.indexstr 0 : { *(.stab.indexstr) }
122 .comment 0 : { *(.comment) }
123 /* DWARF debug sections.
124 Symbols in the DWARF debugging sections are relative to the beginning
125 of the section so we begin them at 0. */
127 .debug 0 : { *(.debug) }
128 .line 0 : { *(.line) }
129 /* GNU DWARF 1 extensions */
130 .debug_srcinfo 0 : { *(.debug_srcinfo) }
131 .debug_sfnames 0 : { *(.debug_sfnames) }
132 /* DWARF 1.1 and DWARF 2 */
133 .debug_aranges 0 : { *(.debug_aranges) }
134 .debug_pubnames 0 : { *(.debug_pubnames) }
136 .debug_info 0 : { *(.debug_info) }
137 .debug_abbrev 0 : { *(.debug_abbrev) }
138 .debug_line 0 : { *(.debug_line) }
139 .debug_frame 0 : { *(.debug_frame) }
140 .debug_str 0 : { *(.debug_str) }
141 .debug_loc 0 : { *(.debug_loc) }
142 .debug_macinfo 0 : { *(.debug_macinfo) }
143 /* SGI/MIPS DWARF 2 extensions */
144 .debug_weaknames 0 : { *(.debug_weaknames) }
145 .debug_funcnames 0 : { *(.debug_funcnames) }
146 .debug_typenames 0 : { *(.debug_typenames) }
147 .debug_varnames 0 : { *(.debug_varnames) }
149 .stack 0x80000 : { _stack = .; *(.stack) *(._stack) }
151 /* These must appear regardless of . */