kern.ldscript revision 1.3
1/* $FreeBSD$ */
2OUTPUT_FORMAT("elf64-ia64-little", "elf64-ia64-little", "elf64-ia64-little")
3OUTPUT_ARCH(ia64)
4ENTRY(start)
5kernel_text = 0xe000000004000000;
6SECTIONS
7{
8  /* Read-only sections, merged into text segment: */
9  . = kernel_text + SIZEOF_HEADERS;
10  .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) }
17  .rela.init      : { *(.rela.init) }
18  .rela.text      : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
19  .rela.fini      : { *(.rela.fini) }
20  .rela.rodata    : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
21  .rela.data      : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
22  .rela.ctors     : { *(.rela.ctors) }
23  .rela.dtors     : { *(.rela.dtors) }
24  .rela.got       : { *(.rela.got) }
25  .rela.sdata     : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) }
26  .rela.sbss      : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) }
27  .rela.sdata2    : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) }
28  .rela.sbss2     : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) }
29  .rela.bss       : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
30  .rela.plt       : { *(.rela.plt) }
31  .rela.IA_64.pltoff   : { *(.rela.IA_64.pltoff) }
32  PROVIDE (btext = .);
33  .init           :
34  {
35    *(.init)
36  } =0x00300000010070000002000001000400
37  .plt            : { *(.plt) }
38  .text           :
39  {
40    *(.text .stub .text.* .gnu.linkonce.t.*)
41    /* .gnu.warning sections are handled specially by elf32.em.  */
42    *(.gnu.warning)
43  } =0x00300000010070000002000001000400
44  .fini           :
45  {
46    *(.fini)
47  } =0x00300000010070000002000001000400
48  _etext = .;
49  PROVIDE (etext = .);
50  .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
51  .rodata1        : { *(.rodata1) }
52  .sdata2         : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
53  .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
54  .opd            : { *(.opd) }
55  .IA_64.unwind_info   : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) }
56  .IA_64.unwind   : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) }
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  . = . + 8192;
60  .data           :
61  {
62    *(.data.proc0 .data .data.* .gnu.linkonce.d.*)
63    SORT(CONSTRUCTORS)
64  }
65  .data1          : { *(.data1) }
66  .dynamic        : { *(.dynamic) }
67  .ctors          :
68  {
69    *(.ctors)
70    *(SORT(.ctors.*))
71  }
72  .dtors          :
73  {
74    *(.dtors)
75    *(SORT(.dtors.*))
76  }
77  . = ALIGN(16);
78  __gp = . + 0x200000;
79  .got            : { *(.got.plt) *(.got) }
80  .IA_64.pltoff   : { *(.IA_64.pltoff) }
81  /* We want the small data sections together, so single-instruction offsets
82     can access them all, and initialized data all before uninitialized, so
83     we can shorten the on-disk segment size.  */
84  .sdata          :
85  {
86    *(.sdata .sdata.* .gnu.linkonce.s.*)
87  }
88  _edata = .;
89  PROVIDE (edata = .);
90  __bss_start = .;
91  .sbss           :
92  {
93    PROVIDE (__sbss_start = .);
94    PROVIDE (___sbss_start = .);
95    *(.dynsbss)
96    *(.sbss .sbss.* .gnu.linkonce.sb.*)
97    *(.scommon)
98    PROVIDE (__sbss_end = .);
99    PROVIDE (___sbss_end = .);
100  }
101  .bss            :
102  {
103    *(.dynbss)
104    *(.bss .bss.* .gnu.linkonce.b.*)
105    *(COMMON)
106    /* Align here to ensure that the .bss section occupies space up to
107       _end.  Align after .bss to ensure correct alignment even if the
108       .bss section disappears because there are no input sections.  */
109    . = ALIGN(64 / 8);
110  }
111  . = ALIGN(64 / 8);
112  _end = .;
113  PROVIDE (end = .);
114  /* Stabs debugging sections.  */
115  .stab          0 : { *(.stab) }
116  .stabstr       0 : { *(.stabstr) }
117  .stab.excl     0 : { *(.stab.excl) }
118  .stab.exclstr  0 : { *(.stab.exclstr) }
119  .stab.index    0 : { *(.stab.index) }
120  .stab.indexstr 0 : { *(.stab.indexstr) }
121  .comment       0 : { *(.comment) }
122  /* DWARF debug sections.
123     Symbols in the DWARF debugging sections are relative to the beginning
124     of the section so we begin them at 0.  */
125  /* DWARF 1 */
126  .debug          0 : { *(.debug) }
127  .line           0 : { *(.line) }
128  /* GNU DWARF 1 extensions */
129  .debug_srcinfo  0 : { *(.debug_srcinfo) }
130  .debug_sfnames  0 : { *(.debug_sfnames) }
131  /* DWARF 1.1 and DWARF 2 */
132  .debug_aranges  0 : { *(.debug_aranges) }
133  .debug_pubnames 0 : { *(.debug_pubnames) }
134  /* DWARF 2 */
135  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
136  .debug_abbrev   0 : { *(.debug_abbrev) }
137  .debug_line     0 : { *(.debug_line) }
138  .debug_frame    0 : { *(.debug_frame) }
139  .debug_str      0 : { *(.debug_str) }
140  .debug_loc      0 : { *(.debug_loc) }
141  .debug_macinfo  0 : { *(.debug_macinfo) }
142  /* SGI/MIPS DWARF 2 extensions */
143  .debug_weaknames 0 : { *(.debug_weaknames) }
144  .debug_funcnames 0 : { *(.debug_funcnames) }
145  .debug_typenames 0 : { *(.debug_typenames) }
146  .debug_varnames  0 : { *(.debug_varnames) }
147}
148