Merge from vendor branch GCC:
[dragonfly.git] / sys / conf / ldscript.alpha
1 /* $FreeBSD: src/sys/conf/ldscript.alpha,v 1.4.2.1 2001/09/20 09:29:23 peter Exp $ */
2 /* $DragonFly: src/sys/conf/Attic/ldscript.alpha,v 1.2 2003/06/17 04:28:20 dillon Exp $ */
3 OUTPUT_FORMAT("elf64-alpha", "elf64-alpha", "elf64-alpha")
4 OUTPUT_ARCH(alpha)
5 ENTRY(__start)
6 SEARCH_DIR(/usr/lib);
7 kernel_text = kernbase;
8 SECTIONS
9 {
10   /* Read-only sections, merged into text segment: */
11   . = kernbase + SIZEOF_HEADERS;
12   .interp     : { *(.interp)    }
13   .hash          : { *(.hash)           }
14   .dynsym        : { *(.dynsym)         }
15   .dynstr        : { *(.dynstr)         }
16   .gnu.version   : { *(.gnu.version)    }
17   .gnu.version_d   : { *(.gnu.version_d)        }
18   .gnu.version_r   : { *(.gnu.version_r)        }
19   .rel.text      :
20     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
21   .rela.text     :
22     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
23   .rel.data      :
24     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
25   .rela.data     :
26     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
27   .rel.rodata    :
28     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
29   .rela.rodata   :
30     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
31   .rel.got       : { *(.rel.got)                }
32   .rela.got      : { *(.rela.got)               }
33   .rel.ctors     : { *(.rel.ctors)      }
34   .rela.ctors    : { *(.rela.ctors)     }
35   .rel.dtors     : { *(.rel.dtors)      }
36   .rela.dtors    : { *(.rela.dtors)     }
37   .rel.init      : { *(.rel.init)       }
38   .rela.init     : { *(.rela.init)      }
39   .rel.fini      : { *(.rel.fini)       }
40   .rela.fini     : { *(.rela.fini)      }
41   .rel.bss       : { *(.rel.bss)                }
42   .rela.bss      : { *(.rela.bss)               }
43   .rel.plt       : { *(.rel.plt)                }
44   .rela.plt      : { *(.rela.plt)               }
45   .init          : { *(.init)   } =0x47ff041f
46   .text      :
47   {
48     *(.text)
49     *(.stub)
50     /* .gnu.warning sections are handled specially by elf32.em.  */
51     *(.gnu.warning)
52     *(.gnu.linkonce.t*)
53   } =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   .got           : { *(.got.plt) *(.got) }
80   .dynamic       : { *(.dynamic) }
81   /* We want the small data sections together, so single-instruction offsets
82      can access them all, and initialized data all before uninitialized, so
83      we can shorten the on-disk segment size.  */
84   .sdata     : { *(.sdata) }
85   _edata  =  .;
86   PROVIDE (edata = .);
87   __bss_start = .;
88   .sbss      : { *(.sbss) *(.scommon) }
89   .bss       :
90   {
91    *(.dynbss)
92    *(.bss)
93    *(COMMON)
94   }
95   . = ALIGN(64 / 8);
96   _end = . ;
97   PROVIDE (end = .);
98   /* Stabs debugging sections.  */
99   .stab 0 : { *(.stab) }
100   .stabstr 0 : { *(.stabstr) }
101   .stab.excl 0 : { *(.stab.excl) }
102   .stab.exclstr 0 : { *(.stab.exclstr) }
103   .stab.index 0 : { *(.stab.index) }
104   .stab.indexstr 0 : { *(.stab.indexstr) }
105   .comment 0 : { *(.comment) }
106   /* DWARF debug sections.
107      Symbols in the DWARF debugging sections are relative to the beginning
108      of the section so we begin them at 0.  */
109   /* DWARF 1 */
110   .debug          0 : { *(.debug) }
111   .line           0 : { *(.line) }
112   /* GNU DWARF 1 extensions */
113   .debug_srcinfo  0 : { *(.debug_srcinfo) }
114   .debug_sfnames  0 : { *(.debug_sfnames) }
115   /* DWARF 1.1 and DWARF 2 */
116   .debug_aranges  0 : { *(.debug_aranges) }
117   .debug_pubnames 0 : { *(.debug_pubnames) }
118   /* DWARF 2 */
119   .debug_info     0 : { *(.debug_info) }
120   .debug_abbrev   0 : { *(.debug_abbrev) }
121   .debug_line     0 : { *(.debug_line) }
122   .debug_frame    0 : { *(.debug_frame) }
123   .debug_str      0 : { *(.debug_str) }
124   .debug_loc      0 : { *(.debug_loc) }
125   .debug_macinfo  0 : { *(.debug_macinfo) }
126   /* SGI/MIPS DWARF 2 extensions */
127   .debug_weaknames 0 : { *(.debug_weaknames) }
128   .debug_funcnames 0 : { *(.debug_funcnames) }
129   .debug_typenames 0 : { *(.debug_typenames) }
130   .debug_varnames  0 : { *(.debug_varnames) }
131   /* These must appear regardless of  .  */
132 }
133