2 * Linker script for Gaisler Research AB's GRSIM LEON3 simulator.
5 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
7 * SPDX-License-Identifier: GPL-2.0+
10 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
16 /* Read-only sections, merged into text segment: */
18 .interp : { *(.interp) }
20 .dynsym : { *(.dynsym) }
21 .dynstr : { *(.dynstr) }
22 .rel.text : { *(.rel.text) }
23 .rela.text : { *(.rela.text) }
24 .rel.data : { *(.rel.data) }
25 .rela.data : { *(.rela.data) }
26 .rel.rodata : { *(.rel.rodata) }
27 .rela.rodata : { *(.rela.rodata) }
28 .rel.got : { *(.rel.got) }
29 .rela.got : { *(.rela.got) }
30 .rel.ctors : { *(.rel.ctors) }
31 .rela.ctors : { *(.rela.ctors) }
32 .rel.dtors : { *(.rel.dtors) }
33 .rela.dtors : { *(.rela.dtors) }
34 .rel.bss : { *(.rel.bss) }
35 .rela.bss : { *(.rela.bss) }
36 .rel.plt : { *(.rel.plt) }
37 .rela.plt : { *(.rela.plt) }
46 arch/sparc/cpu/leon3/start.o (.text)
47 /* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
49 /* PROM CODE, Will be relocated to the end of memory,
50 * no global data accesses please.
64 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
74 KEEP(*(SORT(.u_boot_list*)));
101 /* .data.rel : { } */
106 .text.init : { *(.text.init) }
107 .data.init : { *(.data.init) }
118 . = ALIGN(16); /* to speed clearing of bss up */
124 /* Relocated into main memory */
126 /* Start of main memory */
129 .stack (NOLOAD) : { *(.stack) }
133 /* global data in RAM passed to kernel after booting */
136 .stab 0 : { *(.stab) }
137 .stabstr 0 : { *(.stabstr) }
138 .stab.excl 0 : { *(.stab.excl) }
139 .stab.exclstr 0 : { *(.stab.exclstr) }
140 .stab.index 0 : { *(.stab.index) }
141 .stab.indexstr 0 : { *(.stab.indexstr) }
142 .comment 0 : { *(.comment) }