Fix typos.
[dragonfly.git] / sys / conf / ldscript.i386
1 /* $FreeBSD: src/sys/conf/ldscript.i386,v 1.4.2.1 2001/09/20 09:29:23 peter Exp $ */
2 /* $DragonFly: src/sys/conf/Attic/ldscript.i386,v 1.2 2003/06/17 04:28:20 dillon Exp $ */
3 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
4 OUTPUT_ARCH(i386)
5 ENTRY(btext)
6 SEARCH_DIR(/usr/lib);
7 SECTIONS
8 {
9   /* Read-only sections, merged into text segment: */
10   . = kernbase + 0x00100000 + SIZEOF_HEADERS;
11   .interp     : { *(.interp)    }
12   .hash          : { *(.hash)           }
13   .dynsym        : { *(.dynsym)         }
14   .dynstr        : { *(.dynstr)         }
15   .gnu.version   : { *(.gnu.version)    }
16   .gnu.version_d   : { *(.gnu.version_d)        }
17   .gnu.version_r   : { *(.gnu.version_r)        }
18   .rel.text      :
19     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
20   .rela.text     :
21     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
22   .rel.data      :
23     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
24   .rela.data     :
25     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
26   .rel.rodata    :
27     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
28   .rela.rodata   :
29     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
30   .rel.got       : { *(.rel.got)                }
31   .rela.got      : { *(.rela.got)               }
32   .rel.ctors     : { *(.rel.ctors)      }
33   .rela.ctors    : { *(.rela.ctors)     }
34   .rel.dtors     : { *(.rel.dtors)      }
35   .rela.dtors    : { *(.rela.dtors)     }
36   .rel.init      : { *(.rel.init)       }
37   .rela.init     : { *(.rela.init)      }
38   .rel.fini      : { *(.rel.fini)       }
39   .rela.fini     : { *(.rela.fini)      }
40   .rel.bss       : { *(.rel.bss)                }
41   .rela.bss      : { *(.rela.bss)               }
42   .rel.plt       : { *(.rel.plt)                }
43   .rela.plt      : { *(.rela.plt)               }
44   .init          : { *(.init)   } =0x9090
45   .plt      : { *(.plt) }
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   } =0x9090
54   _etext = .;
55   PROVIDE (etext = .);
56   .fini      : { *(.fini)    } =0x9090
57   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
58   .rodata1   : { *(.rodata1) }
59   /* Adjust the address for the data segment.  We want to adjust up to
60      the same address within the page on the next page up.  */
61   . = ALIGN(0x1000) + (. & (0x1000 - 1)) ; 
62   .data    :
63   {
64     *(.data)
65     *(.gnu.linkonce.d*)
66     CONSTRUCTORS
67   }
68   .data1   : { *(.data1) }
69   .ctors         :
70   {
71     *(.ctors)
72   }
73   .dtors         :
74   {
75     *(.dtors)
76   }
77   .got           : { *(.got.plt) *(.got) }
78   .dynamic       : { *(.dynamic) }
79   /* We want the small data sections together, so single-instruction offsets
80      can access them all, and initialized data all before uninitialized, so
81      we can shorten the on-disk segment size.  */
82   .sdata     : { *(.sdata) }
83   _edata  =  .;
84   PROVIDE (edata = .);
85   __bss_start = .;
86   .sbss      : { *(.sbss) *(.scommon) }
87   .bss       :
88   {
89    *(.dynbss)
90    *(.bss)
91    *(COMMON)
92   }
93   . = ALIGN(32 / 8);
94   _end = . ;
95   PROVIDE (end = .);
96   /* Stabs debugging sections.  */
97   .stab 0 : { *(.stab) }
98   .stabstr 0 : { *(.stabstr) }
99   .stab.excl 0 : { *(.stab.excl) }
100   .stab.exclstr 0 : { *(.stab.exclstr) }
101   .stab.index 0 : { *(.stab.index) }
102   .stab.indexstr 0 : { *(.stab.indexstr) }
103   .comment 0 : { *(.comment) }
104   /* DWARF debug sections.
105      Symbols in the DWARF debugging sections are relative to the beginning
106      of the section so we begin them at 0.  */
107   /* DWARF 1 */
108   .debug          0 : { *(.debug) }
109   .line           0 : { *(.line) }
110   /* GNU DWARF 1 extensions */
111   .debug_srcinfo  0 : { *(.debug_srcinfo) }
112   .debug_sfnames  0 : { *(.debug_sfnames) }
113   /* DWARF 1.1 and DWARF 2 */
114   .debug_aranges  0 : { *(.debug_aranges) }
115   .debug_pubnames 0 : { *(.debug_pubnames) }
116   /* DWARF 2 */
117   .debug_info     0 : { *(.debug_info) }
118   .debug_abbrev   0 : { *(.debug_abbrev) }
119   .debug_line     0 : { *(.debug_line) }
120   .debug_frame    0 : { *(.debug_frame) }
121   .debug_str      0 : { *(.debug_str) }
122   .debug_loc      0 : { *(.debug_loc) }
123   .debug_macinfo  0 : { *(.debug_macinfo) }
124   /* SGI/MIPS DWARF 2 extensions */
125   .debug_weaknames 0 : { *(.debug_weaknames) }
126   .debug_funcnames 0 : { *(.debug_funcnames) }
127   .debug_typenames 0 : { *(.debug_typenames) }
128   .debug_varnames  0 : { *(.debug_varnames) }
129   /* These must appear regardless of  .  */
130 }