Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / um / kernel / uml.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   /*This must contain the right address - not quite the default ELF one.*/
11   PROVIDE (__executable_start = START);
12   . = START + SIZEOF_HEADERS;
13
14   /* Used in arch/um/kernel/mem.c. Any memory between START and __binary_start
15    * is remapped.*/
16   __binary_start = .;
17
18 #ifdef MODE_TT
19   .remap_data : { UNMAP_PATH (.data .bss) }
20   .remap : { UNMAP_PATH (.text) }
21
22   . = ALIGN(4096);              /* Init code and data */
23 #endif
24
25   _stext = .;
26   __init_begin = .;
27   .init.text : {
28         _sinittext = .;
29         *(.init.text)
30         _einittext = .;
31   }
32   . = ALIGN(4096);
33
34   .text      :
35   {
36     *(.text)
37     SCHED_TEXT
38     LOCK_TEXT
39     *(.fixup)
40     /* .gnu.warning sections are handled specially by elf32.em.  */
41     *(.gnu.warning)
42     *(.gnu.linkonce.t*)
43
44     . = ALIGN(4096);
45     __syscall_stub_start = .;
46     *(.__syscall_stub*)
47     __syscall_stub_end = .;
48     . = ALIGN(4096);
49   }
50
51   #include "asm/common.lds.S"
52
53   init.data : { *(init.data) }
54   .data    :
55   {
56     . = ALIGN(KERNEL_STACK_SIZE);               /* init_task */
57     *(.data.init_task)
58     *(.data)
59     *(.gnu.linkonce.d*)
60     CONSTRUCTORS
61   }
62   .data1   : { *(.data1) }
63   .ctors         :
64   {
65     *(.ctors)
66   }
67   .dtors         :
68   {
69     *(.dtors)
70   }
71
72   .got           : { *(.got.plt) *(.got) }
73   .dynamic       : { *(.dynamic) }
74   .tdata          : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
75   .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
76   /* We want the small data sections together, so single-instruction offsets
77      can access them all, and initialized data all before uninitialized, so
78      we can shorten the on-disk segment size.  */
79   .sdata     : { *(.sdata) }
80   _edata  =  .;
81   PROVIDE (edata = .);
82   . = ALIGN(0x1000);
83   .sbss      :
84   {
85    __bss_start = .;
86    PROVIDE(_bss_start = .);
87    *(.sbss)
88    *(.scommon)
89   }
90   .bss       :
91   {
92    *(.dynbss)
93    *(.bss)
94    *(COMMON)
95   }
96   _end = .;
97   PROVIDE (end = .);
98
99   STABS_DEBUG
100
101   DWARF_DEBUG
102 }