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