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  PROVIDE (btext = .);
11  .plt            : { *(.plt) }
12  .text           :
13  {
14    *(.text .stub .text.* .gnu.linkonce.t.*)
15    /* .gnu.warning sections are handled specially by elf32.em.  */
16    *(.gnu.warning)
17  } =0x00300000010070000002000001000400
18  _etext = .;
19  PROVIDE (etext = .);
20  .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
21  .rodata1        : { *(.rodata1) }
22  .sdata2         : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
23  .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
24  .opd            : { *(.opd) }
25  .IA_64.unwind_info   : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) }
26  .IA_64.unwind   : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) }
27  /* Adjust the address for the data segment.  We want to adjust up to
28     the same address within the page on the next page up.  */
29  . = . + 8192;
30  .data           :
31  {
32    *(.data.proc0 .data .data.* .gnu.linkonce.d.*)
33    SORT(CONSTRUCTORS)
34  }
35  .data1          : { *(.data1) }
36  .dynamic        : { *(.dynamic) }
37  . = ALIGN(16);
38  __gp = . + 0x200000;
39  .got            : { *(.got.plt) *(.got) }
40  .IA_64.pltoff   : { *(.IA_64.pltoff) }
41  /* We want the small data sections together, so single-instruction offsets
42     can access them all, and initialized data all before uninitialized, so
43     we can shorten the on-disk segment size.  */
44  .sdata          :
45  {
46    *(.sdata .sdata.* .gnu.linkonce.s.*)
47  }
48  _edata = .;
49  PROVIDE (edata = .);
50  __bss_start = .;
51  .sbss           :
52  {
53    PROVIDE (__sbss_start = .);
54    PROVIDE (___sbss_start = .);
55    *(.dynsbss)
56    *(.sbss .sbss.* .gnu.linkonce.sb.*)
57    *(.scommon)
58    PROVIDE (__sbss_end = .);
59    PROVIDE (___sbss_end = .);
60  }
61  .bss            :
62  {
63    *(.dynbss)
64    *(.bss .bss.* .gnu.linkonce.b.*)
65    *(COMMON)
66    /* Align here to ensure that the .bss section occupies space up to
67       _end.  Align after .bss to ensure correct alignment even if the
68       .bss section disappears because there are no input sections.  */
69    . = ALIGN(64 / 8);
70  }
71  . = ALIGN(64 / 8);
72  _end = .;
73  PROVIDE (end = .);
74}
75