1
2OUTPUT_FORMAT("elf64-ia64-little")
3OUTPUT_ARCH(ia64)
4ENTRY(_start)
5SECTIONS
6{
7  v = 0x0000000000000000 ;	/* this symbol is here to make debugging with kdb easier... */
8
9  . = (0x000000000000000  + 0x100000) ;
10
11  _text = .;
12  .text : AT(ADDR(.text) - 0x0000000000000000 )
13    {
14	*(__ivt_section)
15	/* these are not really text pages, but the zero page needs to be in a fixed location: */
16	*(__special_page_section)
17	__start_gate_section = .;
18	*(__gate_section)
19	__stop_gate_section = .;
20	*(.text)
21    }
22
23  /* Global data */
24  _data = .;
25
26  .rodata : AT(ADDR(.rodata) - 0x0000000000000000 )
27	{ *(.rodata) *(.rodata.*) }
28  .opd : AT(ADDR(.opd) - 0x0000000000000000 )
29	{ *(.opd) }
30  .data : AT(ADDR(.data) - 0x0000000000000000 )
31	{ *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS }
32
33  __gp = ALIGN (8) + 0x200000;
34
35  .got : AT(ADDR(.got) - 0x0000000000000000 )
36	{ *(.got.plt) *(.got) }
37  /* We want the small data sections together, so single-instruction offsets
38     can access them all, and initialized data all before uninitialized, so
39     we can shorten the on-disk segment size.  */
40  .sdata : AT(ADDR(.sdata) - 0x0000000000000000 )
41	{ *(.sdata) }
42  _edata  =  .;
43  _bss = .;
44  .sbss : AT(ADDR(.sbss) - 0x0000000000000000 )
45	{ *(.sbss) *(.scommon) }
46  .bss : AT(ADDR(.bss) - 0x0000000000000000 )
47	{ *(.bss) *(COMMON) }
48  . = ALIGN(64 / 8);
49  _end = .;
50
51  /* Sections to be discarded */
52  /DISCARD/ : {
53	*(.text.exit)
54	*(.data.exit)
55	}
56
57  /* Stabs debugging sections.  */
58  .stab 0 : { *(.stab) }
59  .stabstr 0 : { *(.stabstr) }
60  .stab.excl 0 : { *(.stab.excl) }
61  .stab.exclstr 0 : { *(.stab.exclstr) }
62  .stab.index 0 : { *(.stab.index) }
63  .stab.indexstr 0 : { *(.stab.indexstr) }
64  /* DWARF debug sections.
65     Symbols in the DWARF debugging sections are relative to the beginning
66     of the section so we begin them at 0.  */
67  /* DWARF 1 */
68  .debug          0 : { *(.debug) }
69  .line           0 : { *(.line) }
70  /* GNU DWARF 1 extensions */
71  .debug_srcinfo  0 : { *(.debug_srcinfo) }
72  .debug_sfnames  0 : { *(.debug_sfnames) }
73  /* DWARF 1.1 and DWARF 2 */
74  .debug_aranges  0 : { *(.debug_aranges) }
75  .debug_pubnames 0 : { *(.debug_pubnames) }
76  /* DWARF 2 */
77  .debug_info     0 : { *(.debug_info) }
78  .debug_abbrev   0 : { *(.debug_abbrev) }
79  .debug_line     0 : { *(.debug_line) }
80  .debug_frame    0 : { *(.debug_frame) }
81  .debug_str      0 : { *(.debug_str) }
82  .debug_loc      0 : { *(.debug_loc) }
83  .debug_macinfo  0 : { *(.debug_macinfo) }
84  /* SGI/MIPS DWARF 2 extensions */
85  .debug_weaknames 0 : { *(.debug_weaknames) }
86  .debug_funcnames 0 : { *(.debug_funcnames) }
87  .debug_typenames 0 : { *(.debug_typenames) }
88  .debug_varnames  0 : { *(.debug_varnames) }
89  /* These must appear regardless of  .  */
90  /* Discard them for now since Intel SoftSDV cannot handle them.
91  .comment 0 : { *(.comment) }
92  .note 0 : { *(.note) }
93  */
94  /DISCARD/ : { *(.comment) }
95  /DISCARD/ : { *(.note) }
96}
97