Commit 9e46cfa4c69a9720080d11aa68ef24cf9dddeb4d
1 parent
e2f909be
sparc64.ld file (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2082 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
138 additions
and
0 deletions
sparc64.ld
0 → 100644
1 | +OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", | |
2 | + "elf64-sparc") | |
3 | +OUTPUT_ARCH(sparc:v9) | |
4 | +SEARCH_DIR(/lib64); SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib64); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib64); 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 | + . = ALIGN(64 / 8); | |
57 | + PROVIDE (__preinit_array_start = .); | |
58 | + .preinit_array : { *(.preinit_array) } | |
59 | + PROVIDE (__preinit_array_end = .); | |
60 | + PROVIDE (__init_array_start = .); | |
61 | + .init_array : { *(.init_array) } | |
62 | + PROVIDE (__init_array_end = .); | |
63 | + PROVIDE (__fini_array_start = .); | |
64 | + .fini_array : { *(.fini_array) } | |
65 | + PROVIDE (__fini_array_end = .); | |
66 | + .reginfo : { *(.reginfo) } | |
67 | + /* Adjust the address for the data segment. We want to adjust up to | |
68 | + the same address within the page on the next page up. */ | |
69 | + . = ALIGN(0x100000) + (. & (0x100000 - 1)); | |
70 | + .data : | |
71 | + { | |
72 | + *(.data) | |
73 | + *(.gnu.linkonce.d*) | |
74 | + CONSTRUCTORS | |
75 | + } | |
76 | + .data1 : { *(.data1) } | |
77 | + .ctors : | |
78 | + { | |
79 | + *(.ctors) | |
80 | + } | |
81 | + .dtors : | |
82 | + { | |
83 | + *(.dtors) | |
84 | + } | |
85 | + .plt : { *(.plt) } | |
86 | + .got : { *(.got.plt) *(.got) } | |
87 | + .dynamic : { *(.dynamic) } | |
88 | + /* We want the small data sections together, so single-instruction offsets | |
89 | + can access them all, and initialized data all before uninitialized, so | |
90 | + we can shorten the on-disk segment size. */ | |
91 | + .sdata : { *(.sdata) } | |
92 | + _edata = .; | |
93 | + PROVIDE (edata = .); | |
94 | + __bss_start = .; | |
95 | + .sbss : { *(.sbss) *(.scommon) } | |
96 | + .bss : | |
97 | + { | |
98 | + *(.dynbss) | |
99 | + *(.bss) | |
100 | + *(COMMON) | |
101 | + } | |
102 | + _end = . ; | |
103 | + PROVIDE (end = .); | |
104 | + /* Stabs debugging sections. */ | |
105 | + .stab 0 : { *(.stab) } | |
106 | + .stabstr 0 : { *(.stabstr) } | |
107 | + .stab.excl 0 : { *(.stab.excl) } | |
108 | + .stab.exclstr 0 : { *(.stab.exclstr) } | |
109 | + .stab.index 0 : { *(.stab.index) } | |
110 | + .stab.indexstr 0 : { *(.stab.indexstr) } | |
111 | + .comment 0 : { *(.comment) } | |
112 | + /* DWARF debug sections. | |
113 | + Symbols in the DWARF debugging sections are relative to the beginning | |
114 | + of the section so we begin them at 0. */ | |
115 | + /* DWARF 1 */ | |
116 | + .debug 0 : { *(.debug) } | |
117 | + .line 0 : { *(.line) } | |
118 | + /* GNU DWARF 1 extensions */ | |
119 | + .debug_srcinfo 0 : { *(.debug_srcinfo) } | |
120 | + .debug_sfnames 0 : { *(.debug_sfnames) } | |
121 | + /* DWARF 1.1 and DWARF 2 */ | |
122 | + .debug_aranges 0 : { *(.debug_aranges) } | |
123 | + .debug_pubnames 0 : { *(.debug_pubnames) } | |
124 | + /* DWARF 2 */ | |
125 | + .debug_info 0 : { *(.debug_info) } | |
126 | + .debug_abbrev 0 : { *(.debug_abbrev) } | |
127 | + .debug_line 0 : { *(.debug_line) } | |
128 | + .debug_frame 0 : { *(.debug_frame) } | |
129 | + .debug_str 0 : { *(.debug_str) } | |
130 | + .debug_loc 0 : { *(.debug_loc) } | |
131 | + .debug_macinfo 0 : { *(.debug_macinfo) } | |
132 | + /* SGI/MIPS DWARF 2 extensions */ | |
133 | + .debug_weaknames 0 : { *(.debug_weaknames) } | |
134 | + .debug_funcnames 0 : { *(.debug_funcnames) } | |
135 | + .debug_typenames 0 : { *(.debug_typenames) } | |
136 | + .debug_varnames 0 : { *(.debug_varnames) } | |
137 | + /* These must appear regardless of . */ | |
138 | +} | ... | ... |