Statistics
| Branch: | Revision:

root / sparc64.ld @ a74cdab4

History | View | Annotate | Download (4.4 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
ENTRY(_start)
5 9e46cfa4 bellard
SECTIONS
6 9e46cfa4 bellard
{
7 9e46cfa4 bellard
  /* Read-only sections, merged into text segment: */
8 9e46cfa4 bellard
  . = 0x60000000 + SIZEOF_HEADERS;
9 f930d07e blueswir1
  .interp     : { *(.interp)    }
10 f930d07e blueswir1
  .hash          : { *(.hash)           }
11 f930d07e blueswir1
  .dynsym        : { *(.dynsym)         }
12 f930d07e blueswir1
  .dynstr        : { *(.dynstr)         }
13 f930d07e blueswir1
  .gnu.version   : { *(.gnu.version)    }
14 f930d07e blueswir1
  .gnu.version_d   : { *(.gnu.version_d)        }
15 f930d07e blueswir1
  .gnu.version_r   : { *(.gnu.version_r)        }
16 9e46cfa4 bellard
  .rel.text      :
17 9e46cfa4 bellard
    { *(.rel.text) *(.rel.gnu.linkonce.t*) }
18 9e46cfa4 bellard
  .rela.text     :
19 9e46cfa4 bellard
    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
20 9e46cfa4 bellard
  .rel.data      :
21 9e46cfa4 bellard
    { *(.rel.data) *(.rel.gnu.linkonce.d*) }
22 9e46cfa4 bellard
  .rela.data     :
23 9e46cfa4 bellard
    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
24 9e46cfa4 bellard
  .rel.rodata    :
25 9e46cfa4 bellard
    { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
26 9e46cfa4 bellard
  .rela.rodata   :
27 9e46cfa4 bellard
    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
28 f930d07e blueswir1
  .rel.got       : { *(.rel.got)                }
29 f930d07e blueswir1
  .rela.got      : { *(.rela.got)               }
30 f930d07e blueswir1
  .rel.ctors     : { *(.rel.ctors)      }
31 f930d07e blueswir1
  .rela.ctors    : { *(.rela.ctors)     }
32 f930d07e blueswir1
  .rel.dtors     : { *(.rel.dtors)      }
33 f930d07e blueswir1
  .rela.dtors    : { *(.rela.dtors)     }
34 f930d07e blueswir1
  .rel.init      : { *(.rel.init)       }
35 f930d07e blueswir1
  .rela.init     : { *(.rela.init)      }
36 f930d07e blueswir1
  .rel.fini      : { *(.rel.fini)       }
37 f930d07e blueswir1
  .rela.fini     : { *(.rela.fini)      }
38 f930d07e blueswir1
  .rel.bss       : { *(.rel.bss)                }
39 f930d07e blueswir1
  .rela.bss      : { *(.rela.bss)               }
40 f930d07e blueswir1
  .rel.plt       : { *(.rel.plt)                }
41 f930d07e blueswir1
  .rela.plt      : { *(.rela.plt)               }
42 f930d07e blueswir1
  .init          : { *(.init)   } =0x47ff041f
43 9e46cfa4 bellard
  .text      :
44 9e46cfa4 bellard
  {
45 9e46cfa4 bellard
    *(.text)
46 9e46cfa4 bellard
    /* .gnu.warning sections are handled specially by elf32.em.  */
47 9e46cfa4 bellard
    *(.gnu.warning)
48 9e46cfa4 bellard
    *(.gnu.linkonce.t*)
49 9e46cfa4 bellard
  } =0x47ff041f
50 9e46cfa4 bellard
  _etext = .;
51 9e46cfa4 bellard
  PROVIDE (etext = .);
52 9e46cfa4 bellard
  .fini      : { *(.fini)    } =0x47ff041f
53 9e46cfa4 bellard
  .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
54 9e46cfa4 bellard
  .rodata1   : { *(.rodata1) }
55 9e46cfa4 bellard
  . = ALIGN(64 / 8);
56 9e46cfa4 bellard
  PROVIDE (__preinit_array_start = .);
57 9e46cfa4 bellard
  .preinit_array     : { *(.preinit_array) }
58 9e46cfa4 bellard
  PROVIDE (__preinit_array_end = .);
59 9e46cfa4 bellard
  PROVIDE (__init_array_start = .);
60 9e46cfa4 bellard
  .init_array     : { *(.init_array) }
61 9e46cfa4 bellard
  PROVIDE (__init_array_end = .);
62 9e46cfa4 bellard
  PROVIDE (__fini_array_start = .);
63 9e46cfa4 bellard
  .fini_array     : { *(.fini_array) }
64 9e46cfa4 bellard
  PROVIDE (__fini_array_end = .);
65 9e46cfa4 bellard
  .reginfo : { *(.reginfo) }
66 9e46cfa4 bellard
  /* Adjust the address for the data segment.  We want to adjust up to
67 9e46cfa4 bellard
     the same address within the page on the next page up.  */
68 9e46cfa4 bellard
  . = ALIGN(0x100000) + (. & (0x100000 - 1));
69 9e46cfa4 bellard
  .data    :
70 9e46cfa4 bellard
  {
71 141ac468 blueswir1
    *(.gen_code)
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 f930d07e blueswir1
  .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
}