0.8.13.47:
[sbcl.git] / src / runtime / ld-script.alpha-linux
1 /* This script allegedly has the same effect as -taso would do on Digital
2  * Unix - that is, it forces stuff into the low 2Gb where 32-bit pointers
3  * can find it */
4
5 /*
6  * This software is part of the SBCL system. See the README file for
7  * more information.
8  *
9  * This software is derived from the CMU CL system, which was
10  * written at Carnegie Mellon University and released into the
11  * public domain. The software is in the public domain and is
12  * provided with absolutely no warranty. See the COPYING and CREDITS
13  * files for more information.
14  */
15
16 OUTPUT_FORMAT("elf64-alpha", "elf64-alpha",
17               "elf64-alpha")
18 OUTPUT_ARCH(alpha)
19 ENTRY(__start)
20 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/alpha-linux/lib);
21 /* Do we need any of these for elf?
22    __DYNAMIC = 0;    */
23 SECTIONS
24 {
25   /* Read-only sections, merged into text segment: */
26   . = 0x08048000  + SIZEOF_HEADERS;
27   .interp     : { *(.interp)    }
28   .hash          : { *(.hash)           }
29   .dynsym        : { *(.dynsym)         }
30   .dynstr        : { *(.dynstr)         }
31   .gnu.version   : { *(.gnu.version)    }
32   .gnu.version_d   : { *(.gnu.version_d)        }
33   .gnu.version_r   : { *(.gnu.version_r)        }
34   .rel.text      :
35     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
36   .rela.text     :
37     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
38   .rel.data      :
39     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
40   .rela.data     :
41     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
42   .rel.rodata    :
43     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
44   .rela.rodata   :
45     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
46   .rel.got       : { *(.rel.got)                }
47   .rela.got      : { *(.rela.got)               }
48   .rel.ctors     : { *(.rel.ctors)      }
49   .rela.ctors    : { *(.rela.ctors)     }
50   .rel.dtors     : { *(.rel.dtors)      }
51   .rela.dtors    : { *(.rela.dtors)     }
52   .rel.init      : { *(.rel.init)       }
53   .rela.init     : { *(.rela.init)      }
54   .rel.fini      : { *(.rel.fini)       }
55   .rela.fini     : { *(.rela.fini)      }
56   .rel.bss       : { *(.rel.bss)                }
57   .rela.bss      : { *(.rela.bss)               }
58   .rel.plt       : { *(.rel.plt)                }
59   .rela.plt      : { *(.rela.plt)               }
60   .init          : { *(.init)   } =0x47ff041f
61   .text      :
62   {
63     *(.text)
64     *(.stub)
65     /* .gnu.warning sections are handled specially by elf32.em.  */
66     *(.gnu.warning)
67     *(.gnu.linkonce.t*)
68   } =0x47ff041f
69   _etext = .;
70   PROVIDE (etext = .);
71   .fini      : { *(.fini)    } =0x47ff041f
72   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
73   .rodata1   : { *(.rodata1) }
74   .reginfo : { *(.reginfo) }
75   /* Adjust the address for the data segment.  We want to adjust up to
76      the same address within the page on the next page up.  */
77   . = ALIGN(0x100000) + (. & (0x100000 - 1));
78   .data    :
79   {
80     *(.data)
81     *(.gnu.linkonce.d*)
82     CONSTRUCTORS
83   }
84   .data1   : { *(.data1) }
85   .ctors         :
86   {
87     *(.ctors)
88   }
89   .dtors         :
90   {
91     *(.dtors)
92   }
93   .plt      : { *(.plt) }
94   .got           : { *(.got.plt) *(.got) }
95   .dynamic       : { *(.dynamic) }
96   /* We want the small data sections together, so single-instruction offsets
97      can access them all, and initialized data all before uninitialized, so
98      we can shorten the on-disk segment size.  */
99   .sdata     : { *(.sdata) }
100   _edata  =  .;
101   PROVIDE (edata = .);
102   __bss_start = .;
103   .sbss      : { *(.sbss) *(.scommon) }
104   .bss       :
105   {
106    *(.dynbss)
107    *(.bss)
108    *(COMMON)
109   }
110   . = ALIGN(64 / 8);
111   _end = . ;
112   PROVIDE (end = .);
113   /* Stabs debugging sections.  */
114   .stab 0 : { *(.stab) }
115   .stabstr 0 : { *(.stabstr) }
116   .stab.excl 0 : { *(.stab.excl) }
117   .stab.exclstr 0 : { *(.stab.exclstr) }
118   .stab.index 0 : { *(.stab.index) }
119   .stab.indexstr 0 : { *(.stab.indexstr) }
120   .comment 0 : { *(.comment) }
121   /* DWARF debug sections.
122      Symbols in the DWARF debugging sections are relative to the beginning
123      of the section so we begin them at 0.  */
124   /* DWARF 1 */
125   .debug          0 : { *(.debug) }
126   .line           0 : { *(.line) }
127   /* GNU DWARF 1 extensions */
128   .debug_srcinfo  0 : { *(.debug_srcinfo) }
129   .debug_sfnames  0 : { *(.debug_sfnames) }
130   /* DWARF 1.1 and DWARF 2 */
131   .debug_aranges  0 : { *(.debug_aranges) }
132   .debug_pubnames 0 : { *(.debug_pubnames) }
133   /* DWARF 2 */
134   .debug_info     0 : { *(.debug_info) }
135   .debug_abbrev   0 : { *(.debug_abbrev) }
136   .debug_line     0 : { *(.debug_line) }
137   .debug_frame    0 : { *(.debug_frame) }
138   .debug_str      0 : { *(.debug_str) }
139   .debug_loc      0 : { *(.debug_loc) }
140   .debug_macinfo  0 : { *(.debug_macinfo) }
141   /* SGI/MIPS DWARF 2 extensions */
142   .debug_weaknames 0 : { *(.debug_weaknames) }
143   .debug_funcnames 0 : { *(.debug_funcnames) }
144   .debug_typenames 0 : { *(.debug_typenames) }
145   .debug_varnames  0 : { *(.debug_varnames) }
146   /* These must appear regardless of  .  */
147 }
148