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