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