Statistics
| Branch: | Revision:

root / sparc64.ld @ da3d9c5b

History | View | Annotate | Download (4.6 kB)

1 9e46cfa4 bellard
OUTPUT_FORMAT("elf64-sparc", "elf64-sparc",
2 f930d07e blueswir1
              "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 f930d07e blueswir1
  .interp     : { *(.interp)    }
11 f930d07e blueswir1
  .hash          : { *(.hash)           }
12 f930d07e blueswir1
  .dynsym        : { *(.dynsym)         }
13 f930d07e blueswir1
  .dynstr        : { *(.dynstr)         }
14 f930d07e blueswir1
  .gnu.version   : { *(.gnu.version)    }
15 f930d07e blueswir1
  .gnu.version_d   : { *(.gnu.version_d)        }
16 f930d07e blueswir1
  .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 f930d07e blueswir1
  .rel.got       : { *(.rel.got)                }
30 f930d07e blueswir1
  .rela.got      : { *(.rela.got)               }
31 f930d07e blueswir1
  .rel.ctors     : { *(.rel.ctors)      }
32 f930d07e blueswir1
  .rela.ctors    : { *(.rela.ctors)     }
33 f930d07e blueswir1
  .rel.dtors     : { *(.rel.dtors)      }
34 f930d07e blueswir1
  .rela.dtors    : { *(.rela.dtors)     }
35 f930d07e blueswir1
  .rel.init      : { *(.rel.init)       }
36 f930d07e blueswir1
  .rela.init     : { *(.rela.init)      }
37 f930d07e blueswir1
  .rel.fini      : { *(.rel.fini)       }
38 f930d07e blueswir1
  .rela.fini     : { *(.rela.fini)      }
39 f930d07e blueswir1
  .rel.bss       : { *(.rel.bss)                }
40 f930d07e blueswir1
  .rela.bss      : { *(.rela.bss)               }
41 f930d07e blueswir1
  .rel.plt       : { *(.rel.plt)                }
42 f930d07e blueswir1
  .rela.plt      : { *(.rela.plt)               }
43 f930d07e blueswir1
  .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 141ac468 blueswir1
    *(.gen_code)
73 9e46cfa4 bellard
    *(.data)
74 9e46cfa4 bellard
    *(.gnu.linkonce.d*)
75 9e46cfa4 bellard
    CONSTRUCTORS
76 9e46cfa4 bellard
  }
77 9e46cfa4 bellard
  .data1   : { *(.data1) }
78 9e46cfa4 bellard
  .ctors         :
79 9e46cfa4 bellard
  {
80 9e46cfa4 bellard
    *(.ctors)
81 9e46cfa4 bellard
  }
82 9e46cfa4 bellard
  .dtors         :
83 9e46cfa4 bellard
  {
84 9e46cfa4 bellard
    *(.dtors)
85 9e46cfa4 bellard
  }
86 f930d07e blueswir1
  .plt      : { *(.plt) }
87 9e46cfa4 bellard
  .got           : { *(.got.plt) *(.got) }
88 9e46cfa4 bellard
  .dynamic       : { *(.dynamic) }
89 9e46cfa4 bellard
  /* We want the small data sections together, so single-instruction offsets
90 9e46cfa4 bellard
     can access them all, and initialized data all before uninitialized, so
91 9e46cfa4 bellard
     we can shorten the on-disk segment size.  */
92 9e46cfa4 bellard
  .sdata     : { *(.sdata) }
93 9e46cfa4 bellard
  _edata  =  .;
94 9e46cfa4 bellard
  PROVIDE (edata = .);
95 9e46cfa4 bellard
  __bss_start = .;
96 9e46cfa4 bellard
  .sbss      : { *(.sbss) *(.scommon) }
97 9e46cfa4 bellard
  .bss       :
98 9e46cfa4 bellard
  {
99 9e46cfa4 bellard
   *(.dynbss)
100 9e46cfa4 bellard
   *(.bss)
101 9e46cfa4 bellard
   *(COMMON)
102 9e46cfa4 bellard
  }
103 9e46cfa4 bellard
  _end = . ;
104 9e46cfa4 bellard
  PROVIDE (end = .);
105 9e46cfa4 bellard
  /* Stabs debugging sections.  */
106 9e46cfa4 bellard
  .stab 0 : { *(.stab) }
107 9e46cfa4 bellard
  .stabstr 0 : { *(.stabstr) }
108 9e46cfa4 bellard
  .stab.excl 0 : { *(.stab.excl) }
109 9e46cfa4 bellard
  .stab.exclstr 0 : { *(.stab.exclstr) }
110 9e46cfa4 bellard
  .stab.index 0 : { *(.stab.index) }
111 9e46cfa4 bellard
  .stab.indexstr 0 : { *(.stab.indexstr) }
112 9e46cfa4 bellard
  .comment 0 : { *(.comment) }
113 9e46cfa4 bellard
  /* DWARF debug sections.
114 9e46cfa4 bellard
     Symbols in the DWARF debugging sections are relative to the beginning
115 9e46cfa4 bellard
     of the section so we begin them at 0.  */
116 9e46cfa4 bellard
  /* DWARF 1 */
117 9e46cfa4 bellard
  .debug          0 : { *(.debug) }
118 9e46cfa4 bellard
  .line           0 : { *(.line) }
119 9e46cfa4 bellard
  /* GNU DWARF 1 extensions */
120 9e46cfa4 bellard
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
121 9e46cfa4 bellard
  .debug_sfnames  0 : { *(.debug_sfnames) }
122 9e46cfa4 bellard
  /* DWARF 1.1 and DWARF 2 */
123 9e46cfa4 bellard
  .debug_aranges  0 : { *(.debug_aranges) }
124 9e46cfa4 bellard
  .debug_pubnames 0 : { *(.debug_pubnames) }
125 9e46cfa4 bellard
  /* DWARF 2 */
126 9e46cfa4 bellard
  .debug_info     0 : { *(.debug_info) }
127 9e46cfa4 bellard
  .debug_abbrev   0 : { *(.debug_abbrev) }
128 9e46cfa4 bellard
  .debug_line     0 : { *(.debug_line) }
129 9e46cfa4 bellard
  .debug_frame    0 : { *(.debug_frame) }
130 9e46cfa4 bellard
  .debug_str      0 : { *(.debug_str) }
131 9e46cfa4 bellard
  .debug_loc      0 : { *(.debug_loc) }
132 9e46cfa4 bellard
  .debug_macinfo  0 : { *(.debug_macinfo) }
133 9e46cfa4 bellard
  /* SGI/MIPS DWARF 2 extensions */
134 9e46cfa4 bellard
  .debug_weaknames 0 : { *(.debug_weaknames) }
135 9e46cfa4 bellard
  .debug_funcnames 0 : { *(.debug_funcnames) }
136 9e46cfa4 bellard
  .debug_typenames 0 : { *(.debug_typenames) }
137 9e46cfa4 bellard
  .debug_varnames  0 : { *(.debug_varnames) }
138 9e46cfa4 bellard
  /* These must appear regardless of  .  */
139 9e46cfa4 bellard
}