Statistics
| Branch: | Revision:

root / alpha.ld @ 7ad7e3c3

History | View | Annotate | Download (3.9 kB)

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