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