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