]> git.proxmox.com Git - qemu.git/blob - sparc.ld
qcow2: Bring synchronous read/write back to life
[qemu.git] / sparc.ld
1 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc",
2 "elf32-sparc")
3 OUTPUT_ARCH(sparc)
4 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/alpha-unknown-linux-gnu/lib);
5 ENTRY(_start)
6 SECTIONS
7 {
8 /* Read-only sections, merged into text segment: */
9 . = 0x60000000 + SIZEOF_HEADERS;
10 .interp : { *(.interp) }
11 .hash : { *(.hash) }
12 .dynsym : { *(.dynsym) }
13 .dynstr : { *(.dynstr) }
14 .gnu.version : { *(.gnu.version) }
15 .gnu.version_d : { *(.gnu.version_d) }
16 .gnu.version_r : { *(.gnu.version_r) }
17 .rel.text :
18 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
19 .rela.text :
20 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
21 .rel.data :
22 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
23 .rela.data :
24 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
25 .rel.rodata :
26 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
27 .rela.rodata :
28 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
29 .rel.got : { *(.rel.got) }
30 .rela.got : { *(.rela.got) }
31 .rel.ctors : { *(.rel.ctors) }
32 .rela.ctors : { *(.rela.ctors) }
33 .rel.dtors : { *(.rel.dtors) }
34 .rela.dtors : { *(.rela.dtors) }
35 .rel.init : { *(.rel.init) }
36 .rela.init : { *(.rela.init) }
37 .rel.fini : { *(.rel.fini) }
38 .rela.fini : { *(.rela.fini) }
39 .rel.bss : { *(.rel.bss) }
40 .rela.bss : { *(.rela.bss) }
41 .rel.plt : { *(.rel.plt) }
42 .rela.plt : { *(.rela.plt) }
43 .init : { *(.init) } =0x47ff041f
44 .text :
45 {
46 *(.text)
47 /* .gnu.warning sections are handled specially by elf32.em. */
48 *(.gnu.warning)
49 *(.gnu.linkonce.t*)
50 } =0x47ff041f
51 _etext = .;
52 PROVIDE (etext = .);
53 .fini : { *(.fini) } =0x47ff041f
54 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
55 .rodata1 : { *(.rodata1) }
56 .reginfo : { *(.reginfo) }
57 /* Adjust the address for the data segment. We want to adjust up to
58 the same address within the page on the next page up. */
59 . = ALIGN(0x100000) + (. & (0x100000 - 1));
60 .data :
61 {
62 *(.data)
63 *(.gnu.linkonce.d*)
64 CONSTRUCTORS
65 }
66 .data1 : { *(.data1) }
67 .tdata : { *(.tdata) }
68 .tbss : { *(.tbss) }
69 .preinit_array :
70 {
71 PROVIDE_HIDDEN (__preinit_array_start = .);
72 KEEP (*(.preinit_array))
73 PROVIDE_HIDDEN (__preinit_array_end = .);
74 }
75 .init_array :
76 {
77 PROVIDE_HIDDEN (__init_array_start = .);
78 KEEP (*(SORT(.init_array.*)))
79 KEEP (*(.init_array))
80 PROVIDE_HIDDEN (__init_array_end = .);
81 }
82 .fini_array :
83 {
84 PROVIDE_HIDDEN (__fini_array_start = .);
85 KEEP (*(.fini_array))
86 KEEP (*(SORT(.fini_array.*)))
87 PROVIDE_HIDDEN (__fini_array_end = .);
88 }
89 .ctors :
90 {
91 *(.ctors)
92 }
93 .dtors :
94 {
95 *(.dtors)
96 }
97 .plt : { *(.plt) }
98 .got : { *(.got.plt) *(.got) }
99 .dynamic : { *(.dynamic) }
100 /* We want the small data sections together, so single-instruction offsets
101 can access them all, and initialized data all before uninitialized, so
102 we can shorten the on-disk segment size. */
103 .sdata : { *(.sdata) }
104 _edata = .;
105 PROVIDE (edata = .);
106 __bss_start = .;
107 .sbss : { *(.sbss) *(.scommon) }
108 .bss :
109 {
110 *(.dynbss)
111 *(.bss)
112 *(COMMON)
113 }
114 _end = . ;
115 PROVIDE (end = .);
116 /* Stabs debugging sections. */
117 .stab 0 : { *(.stab) }
118 .stabstr 0 : { *(.stabstr) }
119 .stab.excl 0 : { *(.stab.excl) }
120 .stab.exclstr 0 : { *(.stab.exclstr) }
121 .stab.index 0 : { *(.stab.index) }
122 .stab.indexstr 0 : { *(.stab.indexstr) }
123 .comment 0 : { *(.comment) }
124 /* DWARF debug sections.
125 Symbols in the DWARF debugging sections are relative to the beginning
126 of the section so we begin them at 0. */
127 /* DWARF 1 */
128 .debug 0 : { *(.debug) }
129 .line 0 : { *(.line) }
130 /* GNU DWARF 1 extensions */
131 .debug_srcinfo 0 : { *(.debug_srcinfo) }
132 .debug_sfnames 0 : { *(.debug_sfnames) }
133 /* DWARF 1.1 and DWARF 2 */
134 .debug_aranges 0 : { *(.debug_aranges) }
135 .debug_pubnames 0 : { *(.debug_pubnames) }
136 /* DWARF 2 */
137 .debug_info 0 : { *(.debug_info) }
138 .debug_abbrev 0 : { *(.debug_abbrev) }
139 .debug_line 0 : { *(.debug_line) }
140 .debug_frame 0 : { *(.debug_frame) }
141 .debug_str 0 : { *(.debug_str) }
142 .debug_loc 0 : { *(.debug_loc) }
143 .debug_macinfo 0 : { *(.debug_macinfo) }
144 /* SGI/MIPS DWARF 2 extensions */
145 .debug_weaknames 0 : { *(.debug_weaknames) }
146 .debug_funcnames 0 : { *(.debug_funcnames) }
147 .debug_typenames 0 : { *(.debug_typenames) }
148 .debug_varnames 0 : { *(.debug_varnames) }
149 /* These must appear regardless of . */
150 /DISCARD/ : { *(.note.GNU-stack) *(.note.ABI-tag) }
151 }