1 /* Linker script for Gaisler Research AB's GRSIM LEON2 simulator.
4 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
32 /* Read-only sections, merged into text segment: */
34 .interp : { *(.interp) }
36 .dynsym : { *(.dynsym) }
37 .dynstr : { *(.dynstr) }
38 .rel.text : { *(.rel.text) }
39 .rela.text : { *(.rela.text) }
40 .rel.data : { *(.rel.data) }
41 .rela.data : { *(.rela.data) }
42 .rel.rodata : { *(.rel.rodata) }
43 .rela.rodata : { *(.rela.rodata) }
44 .rel.got : { *(.rel.got) }
45 .rela.got : { *(.rela.got) }
46 .rel.ctors : { *(.rel.ctors) }
47 .rela.ctors : { *(.rela.ctors) }
48 .rel.dtors : { *(.rel.dtors) }
49 .rela.dtors : { *(.rela.dtors) }
50 .rel.bss : { *(.rel.bss) }
51 .rela.bss : { *(.rela.bss) }
52 .rel.plt : { *(.rel.plt) }
53 .rela.plt : { *(.rela.plt) }
62 cpu/leon2/start.o (.text)
63 /* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
65 /* PROM CODE, Will be relocated to the end of memory,
66 * no global data accesses please.
89 __u_boot_cmd_start = .;
90 .u_boot_cmd : { *(.u_boot_cmd) }
118 /* .data.rel : { } */
122 .text.init : { *(.text.init) }
123 .data.init : { *(.data.init) }
134 . = ALIGN(16); /* to speed clearing of bss up */
140 /* Relocated into main memory */
142 /* Start of main memory */
145 .stack (NOLOAD) : { *(.stack) }
149 /* global data in RAM passed to kernel after booting */
151 .stab 0 : { *(.stab) }
152 .stabstr 0 : { *(.stabstr) }
153 .stab.excl 0 : { *(.stab.excl) }
154 .stab.exclstr 0 : { *(.stab.exclstr) }
155 .stab.index 0 : { *(.stab.index) }
156 .stab.indexstr 0 : { *(.stab.indexstr) }
157 .comment 0 : { *(.comment) }