This commit was generated by cvs2svn to compensate for changes in r517,
[linux-2.6.git] / arch / um / kernel / dyn.lds.S
1 #include <asm-generic/vmlinux.lds.h>
2
3 OUTPUT_FORMAT(ELF_FORMAT)
4 OUTPUT_ARCH(ELF_ARCH)
5 ENTRY(_start)
6 jiffies = jiffies_64;
7
8 SECTIONS
9 {
10   . = START + SIZEOF_HEADERS;
11   .interp         : { *(.interp) }
12   __binary_start = .;
13   . = ALIGN(4096);              /* Init code and data */
14   _stext = .;
15   __init_begin = .;
16   .init.text : {
17         _sinittext = .;
18         *(.init.text)
19         _einittext = .;
20   }
21
22   . = ALIGN(4096);
23
24   /* Read-only sections, merged into text segment: */
25   .hash           : { *(.hash) }
26   .dynsym         : { *(.dynsym) }
27   .dynstr         : { *(.dynstr) }
28   .gnu.version    : { *(.gnu.version) }
29   .gnu.version_d  : { *(.gnu.version_d) }
30   .gnu.version_r  : { *(.gnu.version_r) }
31   .rel.init       : { *(.rel.init) }
32   .rela.init      : { *(.rela.init) }
33   .rel.text       : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
34   .rela.text      : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
35   .rel.fini       : { *(.rel.fini) }
36   .rela.fini      : { *(.rela.fini) }
37   .rel.rodata     : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
38   .rela.rodata    : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
39   .rel.data       : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
40   .rela.data      : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
41   .rel.tdata      : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
42   .rela.tdata     : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
43   .rel.tbss       : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
44   .rela.tbss      : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
45   .rel.ctors      : { *(.rel.ctors) }
46   .rela.ctors     : { *(.rela.ctors) }
47   .rel.dtors      : { *(.rel.dtors) }
48   .rela.dtors     : { *(.rela.dtors) }
49   .rel.got        : { *(.rel.got) }
50   .rela.got       : { *(.rela.got) }
51   .rel.bss        : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
52   .rela.bss       : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
53   .rel.plt        : { *(.rel.plt) }
54   .rela.plt       : { *(.rela.plt) }
55   .init           : {
56     KEEP (*(.init))
57   } =0x90909090
58   .plt            : { *(.plt) }
59   .text           : {
60     *(.text)
61     SCHED_TEXT
62     LOCK_TEXT
63     *(.fixup)
64     *(.stub .text.* .gnu.linkonce.t.*)
65     /* .gnu.warning sections are handled specially by elf32.em.  */
66     *(.gnu.warning)
67   } =0x90909090
68   .fini           : {
69     KEEP (*(.fini))
70   } =0x90909090
71
72   .kstrtab : { *(.kstrtab) }
73
74   #include "asm/common.lds.S"
75
76   init.data : { *(.init.data) }
77
78   /* Ensure the __preinit_array_start label is properly aligned.  We
79      could instead move the label definition inside the section, but
80      the linker would then create the section even if it turns out to
81      be empty, which isn't pretty.  */
82   . = ALIGN(32 / 8);
83   .preinit_array     : { *(.preinit_array) }
84   .init_array     : { *(.init_array) }
85   .fini_array     : { *(.fini_array) }
86   .data           : {
87     . = ALIGN(KERNEL_STACK_SIZE);               /* init_task */
88     *(.data.init_task)
89     *(.data .data.* .gnu.linkonce.d.*)
90     SORT(CONSTRUCTORS)
91   }
92   .data1          : { *(.data1) }
93   .tdata          : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
94   .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
95   .eh_frame       : { KEEP (*(.eh_frame)) }
96   .gcc_except_table   : { *(.gcc_except_table) }
97   .dynamic        : { *(.dynamic) }
98   .ctors          : {
99     /* gcc uses crtbegin.o to find the start of
100        the constructors, so we make sure it is
101        first.  Because this is a wildcard, it
102        doesn't matter if the user does not
103        actually link against crtbegin.o; the
104        linker won't look for a file to match a
105        wildcard.  The wildcard also means that it
106        doesn't matter which directory crtbegin.o
107        is in.  */
108     KEEP (*crtbegin.o(.ctors))
109     /* We don't want to include the .ctor section from
110        from the crtend.o file until after the sorted ctors.
111        The .ctor section from the crtend file contains the
112        end of ctors marker and it must be last */
113     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
114     KEEP (*(SORT(.ctors.*)))
115     KEEP (*(.ctors))
116   }
117   .dtors          : {
118     KEEP (*crtbegin.o(.dtors))
119     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
120     KEEP (*(SORT(.dtors.*)))
121     KEEP (*(.dtors))
122   }
123   .jcr            : { KEEP (*(.jcr)) }
124   .got            : { *(.got.plt) *(.got) }
125   _edata = .;
126   PROVIDE (edata = .);
127   __bss_start = .;
128   .bss            : {
129    *(.dynbss)
130    *(.bss .bss.* .gnu.linkonce.b.*)
131    *(COMMON)
132    /* Align here to ensure that the .bss section occupies space up to
133       _end.  Align after .bss to ensure correct alignment even if the
134       .bss section disappears because there are no input sections.  */
135    . = ALIGN(32 / 8);
136   . = ALIGN(32 / 8);
137   }
138   _end = .;
139   PROVIDE (end = .);
140    /* Stabs debugging sections.  */
141   .stab          0 : { *(.stab) }
142   .stabstr       0 : { *(.stabstr) }
143   .stab.excl     0 : { *(.stab.excl) }
144   .stab.exclstr  0 : { *(.stab.exclstr) }
145   .stab.index    0 : { *(.stab.index) }
146   .stab.indexstr 0 : { *(.stab.indexstr) }
147   .comment       0 : { *(.comment) }
148   /* DWARF debug sections.
149      Symbols in the DWARF debugging sections are relative to the beginning
150      of the section so we begin them at 0.  */
151   /* DWARF 1 */
152   .debug          0 : { *(.debug) }
153   .line           0 : { *(.line) }
154   /* GNU DWARF 1 extensions */
155   .debug_srcinfo  0 : { *(.debug_srcinfo) }
156   .debug_sfnames  0 : { *(.debug_sfnames) }
157   /* DWARF 1.1 and DWARF 2 */
158   .debug_aranges  0 : { *(.debug_aranges) }
159   .debug_pubnames 0 : { *(.debug_pubnames) }
160   /* DWARF 2 */
161   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
162   .debug_abbrev   0 : { *(.debug_abbrev) }
163   .debug_line     0 : { *(.debug_line) }
164   .debug_frame    0 : { *(.debug_frame) }
165   .debug_str      0 : { *(.debug_str) }
166   .debug_loc      0 : { *(.debug_loc) }
167   .debug_macinfo  0 : { *(.debug_macinfo) }
168   /* SGI/MIPS DWARF 2 extensions */
169   .debug_weaknames 0 : { *(.debug_weaknames) }
170   .debug_funcnames 0 : { *(.debug_funcnames) }
171   .debug_typenames 0 : { *(.debug_typenames) }
172   .debug_varnames  0 : { *(.debug_varnames) }
173 }