1 /* Linker script for the MN10200 Evaluation Board.
2 It differs from the default linker script only in the
3 addresses assigned to text and stack sections.
6 OUTPUT_FORMAT("elf32-mn10200", "elf32-mn10200",
10 GROUP(-lc -leval -lgcc)
12 /* Do we need any of these for elf?
16 /* Read-only sections, merged into text segment: */
17 /* Start of RAM (leaving room for Cygmon 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
59 /* .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 /* gcc uses crtbegin.o to find the start of the constructors, so
82 we make sure it is first. Because this is a wildcard, it
83 doesn't matter if the user does not actually link against
84 crtbegin.o; the linker won't look for a file to match a
85 wildcard. The wildcard also means that it doesn't matter which
86 directory crtbegin.o is in. */
100 .got : { *(.got.plt) *(.got) }
101 .dynamic : { *(.dynamic) }
102 /* We want the small data sections together, so single-instruction offsets
103 can access them all, and initialized data all before uninitialized, so
104 we can shorten the on-disk segment size. */
105 .sdata : { *(.sdata) }
109 .sbss : { *(.sbss) *(.scommon) }
119 /* Stabs debugging sections. */
120 .stab 0 : { *(.stab) }
121 .stabstr 0 : { *(.stabstr) }
122 .stab.excl 0 : { *(.stab.excl) }
123 .stab.exclstr 0 : { *(.stab.exclstr) }
124 .stab.index 0 : { *(.stab.index) }
125 .stab.indexstr 0 : { *(.stab.indexstr) }
126 .comment 0 : { *(.comment) }
127 /* DWARF debug sections.
128 Symbols in the DWARF debugging sections are relative to the beginning
129 of the section so we begin them at 0. */
131 .debug 0 : { *(.debug) }
132 .line 0 : { *(.line) }
133 /* GNU DWARF 1 extensions */
134 .debug_srcinfo 0 : { *(.debug_srcinfo) }
135 .debug_sfnames 0 : { *(.debug_sfnames) }
136 /* DWARF 1.1 and DWARF 2 */
137 .debug_aranges 0 : { *(.debug_aranges) }
138 .debug_pubnames 0 : { *(.debug_pubnames) }
140 .debug_info 0 : { *(.debug_info) }
141 .debug_abbrev 0 : { *(.debug_abbrev) }
142 .debug_line 0 : { *(.debug_line) }
143 .debug_frame 0 : { *(.debug_frame) }
144 .debug_str 0 : { *(.debug_str) }
145 .debug_loc 0 : { *(.debug_loc) }
146 .debug_macinfo 0 : { *(.debug_macinfo) }
147 /* SGI/MIPS DWARF 2 extensions */
148 .debug_weaknames 0 : { *(.debug_weaknames) }
149 .debug_funcnames 0 : { *(.debug_funcnames) }
150 .debug_typenames 0 : { *(.debug_typenames) }
151 .debug_varnames 0 : { *(.debug_varnames) }
153 /* Top of RAM is 0x43ffff, but Cygmon uses the top 4K for its stack. */
154 .stack 0x43f000 : { _stack = .; *(.stack) *(._stack) }
156 /* These must appear regardless of . */