kern.ldscript revision 1.5
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  /* Stabs debugging sections.  */
75  .stab          0 : { *(.stab) }
76  .stabstr       0 : { *(.stabstr) }
77  .stab.excl     0 : { *(.stab.excl) }
78  .stab.exclstr  0 : { *(.stab.exclstr) }
79  .stab.index    0 : { *(.stab.index) }
80  .stab.indexstr 0 : { *(.stab.indexstr) }
81  .comment       0 : { *(.comment) }
82  /* DWARF debug sections.
83     Symbols in the DWARF debugging sections are relative to the beginning
84     of the section so we begin them at 0.  */
85  /* DWARF 1 */
86  .debug          0 : { *(.debug) }
87  .line           0 : { *(.line) }
88  /* GNU DWARF 1 extensions */
89  .debug_srcinfo  0 : { *(.debug_srcinfo) }
90  .debug_sfnames  0 : { *(.debug_sfnames) }
91  /* DWARF 1.1 and DWARF 2 */
92  .debug_aranges  0 : { *(.debug_aranges) }
93  .debug_pubnames 0 : { *(.debug_pubnames) }
94  /* DWARF 2 */
95  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
96  .debug_abbrev   0 : { *(.debug_abbrev) }
97  .debug_line     0 : { *(.debug_line) }
98  .debug_frame    0 : { *(.debug_frame) }
99  .debug_str      0 : { *(.debug_str) }
100  .debug_loc      0 : { *(.debug_loc) }
101  .debug_macinfo  0 : { *(.debug_macinfo) }
102  /* SGI/MIPS DWARF 2 extensions */
103  .debug_weaknames 0 : { *(.debug_weaknames) }
104  .debug_funcnames 0 : { *(.debug_funcnames) }
105  .debug_typenames 0 : { *(.debug_typenames) }
106  .debug_varnames  0 : { *(.debug_varnames) }
107}
108