Statistics
| Branch: | Revision:

root / sparc64.ld @ 52621688

History | View | Annotate | Download (4.4 kB)

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