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