blob: 26ab4151fef92be6834c0821ea6ab675de68f558 [file] [log] [blame]
bellard6380ab52003-06-15 20:25:04 +00001OUTPUT_FORMAT("elf32-sparc", "elf32-sparc",
blueswir1f930d072007-10-06 11:28:21 +00002 "elf32-sparc")
bellard6380ab52003-06-15 20:25:04 +00003OUTPUT_ARCH(sparc)
4SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/alpha-unknown-linux-gnu/lib);
5ENTRY(_start)
6SECTIONS
7{
8 /* Read-only sections, merged into text segment: */
9 . = 0x60000000 + SIZEOF_HEADERS;
blueswir1f930d072007-10-06 11:28:21 +000010 .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) }
bellard6380ab52003-06-15 20:25:04 +000017 .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*) }
blueswir1f930d072007-10-06 11:28:21 +000029 .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
bellard6380ab52003-06-15 20:25:04 +000044 .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) }
blueswir199574272007-04-28 15:18:14 +000067 .tdata : { *(.tdata) }
68 .tbss : { *(.tbss) }
bellard6380ab52003-06-15 20:25:04 +000069 .ctors :
70 {
71 *(.ctors)
72 }
73 .dtors :
74 {
75 *(.dtors)
76 }
blueswir1f930d072007-10-06 11:28:21 +000077 .plt : { *(.plt) }
bellard6380ab52003-06-15 20:25:04 +000078 .got : { *(.got.plt) *(.got) }
79 .dynamic : { *(.dynamic) }
80 /* We want the small data sections together, so single-instruction offsets
81 can access them all, and initialized data all before uninitialized, so
82 we can shorten the on-disk segment size. */
83 .sdata : { *(.sdata) }
84 _edata = .;
85 PROVIDE (edata = .);
86 __bss_start = .;
87 .sbss : { *(.sbss) *(.scommon) }
88 .bss :
89 {
90 *(.dynbss)
91 *(.bss)
92 *(COMMON)
93 }
94 _end = . ;
95 PROVIDE (end = .);
96 /* Stabs debugging sections. */
97 .stab 0 : { *(.stab) }
98 .stabstr 0 : { *(.stabstr) }
99 .stab.excl 0 : { *(.stab.excl) }
100 .stab.exclstr 0 : { *(.stab.exclstr) }
101 .stab.index 0 : { *(.stab.index) }
102 .stab.indexstr 0 : { *(.stab.indexstr) }
103 .comment 0 : { *(.comment) }
104 /* DWARF debug sections.
105 Symbols in the DWARF debugging sections are relative to the beginning
106 of the section so we begin them at 0. */
107 /* DWARF 1 */
108 .debug 0 : { *(.debug) }
109 .line 0 : { *(.line) }
110 /* GNU DWARF 1 extensions */
111 .debug_srcinfo 0 : { *(.debug_srcinfo) }
112 .debug_sfnames 0 : { *(.debug_sfnames) }
113 /* DWARF 1.1 and DWARF 2 */
114 .debug_aranges 0 : { *(.debug_aranges) }
115 .debug_pubnames 0 : { *(.debug_pubnames) }
116 /* DWARF 2 */
117 .debug_info 0 : { *(.debug_info) }
118 .debug_abbrev 0 : { *(.debug_abbrev) }
119 .debug_line 0 : { *(.debug_line) }
120 .debug_frame 0 : { *(.debug_frame) }
121 .debug_str 0 : { *(.debug_str) }
122 .debug_loc 0 : { *(.debug_loc) }
123 .debug_macinfo 0 : { *(.debug_macinfo) }
124 /* SGI/MIPS DWARF 2 extensions */
125 .debug_weaknames 0 : { *(.debug_weaknames) }
126 .debug_funcnames 0 : { *(.debug_funcnames) }
127 .debug_typenames 0 : { *(.debug_typenames) }
128 .debug_varnames 0 : { *(.debug_varnames) }
129 /* These must appear regardless of . */
blueswir199574272007-04-28 15:18:14 +0000130 /DISCARD/ : { *(.note.GNU-stack) *(.note.ABI-tag) }
bellard6380ab52003-06-15 20:25:04 +0000131}