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