Fix make-array transforms.
[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   .preinit_array : {
73         __preinit_array_start = .;
74         *(.preinit_array)
75         __preinit_array_end = .;
76   }
77   .init_array : {
78         __init_array_start = .;
79         *(.init_array)
80         __init_array_end = .;
81   }
82   .fini_array : {
83         __fini_array_start = .;
84         *(.fini_array)
85         __fini_array_end = .;
86   }
87   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
88   .rodata1   : { *(.rodata1) }
89   .reginfo : { *(.reginfo) }
90   /* Adjust the address for the data segment.  We want to adjust up to
91      the same address within the page on the next page up.  */
92   . = ALIGN(0x100000) + (. & (0x100000 - 1));
93   .data    :
94   {
95     *(.data)
96     *(.gnu.linkonce.d*)
97     CONSTRUCTORS
98   }
99   .data1   : { *(.data1) }
100   .ctors         :
101   {
102     *(.ctors)
103   }
104   .dtors         :
105   {
106     *(.dtors)
107   }
108   .plt      : { *(.plt) }
109   .got           : { *(.got.plt) *(.got) }
110   .dynamic       : { *(.dynamic) }
111   /* We want the small data sections together, so single-instruction offsets
112      can access them all, and initialized data all before uninitialized, so
113      we can shorten the on-disk segment size.  */
114   .sdata     : { *(.sdata) }
115   _edata  =  .;
116   PROVIDE (edata = .);
117   __bss_start = .;
118   .sbss      : { *(.sbss) *(.scommon) }
119   .bss       :
120   {
121    *(.dynbss)
122    *(.bss)
123    *(COMMON)
124   }
125   . = ALIGN(64 / 8);
126   _end = . ;
127   PROVIDE (end = .);
128   /* Stabs debugging sections.  */
129   .stab 0 : { *(.stab) }
130   .stabstr 0 : { *(.stabstr) }
131   .stab.excl 0 : { *(.stab.excl) }
132   .stab.exclstr 0 : { *(.stab.exclstr) }
133   .stab.index 0 : { *(.stab.index) }
134   .stab.indexstr 0 : { *(.stab.indexstr) }
135   .comment 0 : { *(.comment) }
136   /* DWARF debug sections.
137      Symbols in the DWARF debugging sections are relative to the beginning
138      of the section so we begin them at 0.  */
139   /* DWARF 1 */
140   .debug          0 : { *(.debug) }
141   .line           0 : { *(.line) }
142   /* GNU DWARF 1 extensions */
143   .debug_srcinfo  0 : { *(.debug_srcinfo) }
144   .debug_sfnames  0 : { *(.debug_sfnames) }
145   /* DWARF 1.1 and DWARF 2 */
146   .debug_aranges  0 : { *(.debug_aranges) }
147   .debug_pubnames 0 : { *(.debug_pubnames) }
148   /* DWARF 2 */
149   .debug_info     0 : { *(.debug_info) }
150   .debug_abbrev   0 : { *(.debug_abbrev) }
151   .debug_line     0 : { *(.debug_line) }
152   .debug_frame    0 : { *(.debug_frame) }
153   .debug_str      0 : { *(.debug_str) }
154   .debug_loc      0 : { *(.debug_loc) }
155   .debug_macinfo  0 : { *(.debug_macinfo) }
156   /* SGI/MIPS DWARF 2 extensions */
157   .debug_weaknames 0 : { *(.debug_weaknames) }
158   .debug_funcnames 0 : { *(.debug_funcnames) }
159   .debug_typenames 0 : { *(.debug_typenames) }
160   .debug_varnames  0 : { *(.debug_varnames) }
161   /* These must appear regardless of  .  */
162 }
163