]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/um/kernel/uml.lds.S
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[net-next-2.6.git] / arch / um / kernel / uml.lds.S
CommitLineData
1da177e4 1#include <asm-generic/vmlinux.lds.h>
a7dfa940 2#include <asm/page.h>
1da177e4
LT
3
4OUTPUT_FORMAT(ELF_FORMAT)
5OUTPUT_ARCH(ELF_ARCH)
6ENTRY(_start)
7jiffies = jiffies_64;
8
9SECTIONS
10{
23bbd586 11 /* This must contain the right address - not quite the default ELF one.*/
1da177e4 12 PROVIDE (__executable_start = START);
23bbd586
JD
13 /* Static binaries stick stuff here, like the sigreturn trampoline,
14 * invisibly to objdump. So, just make __binary_start equal to the very
15 * beginning of the executable, and if there are unmapped pages after this,
16 * they are forever unusable.
17 */
18 __binary_start = START;
1da177e4 19
23bbd586 20 . = START + SIZEOF_HEADERS;
1da177e4 21
d1480c56 22 _text = .;
1da177e4
LT
23 _stext = .;
24 __init_begin = .;
5d150a97 25 INIT_TEXT_SECTION(PAGE_SIZE)
a7dfa940 26 . = ALIGN(PAGE_SIZE);
d67b569f 27
1da177e4
LT
28 .text :
29 {
7664709b 30 TEXT_TEXT
1da177e4
LT
31 SCHED_TEXT
32 LOCK_TEXT
33 *(.fixup)
34 /* .gnu.warning sections are handled specially by elf32.em. */
35 *(.gnu.warning)
36 *(.gnu.linkonce.t*)
c7ec16da 37 }
d67b569f 38
a7dfa940 39 . = ALIGN(PAGE_SIZE);
c7ec16da
JD
40 .syscall_stub : {
41 __syscall_stub_start = .;
42 *(.__syscall_stub*)
43 __syscall_stub_end = .;
1da177e4
LT
44 }
45
46 #include "asm/common.lds.S"
47
01ba2bdc 48 init.data : { INIT_DATA }
1da177e4
LT
49 .data :
50 {
5d150a97 51 INIT_TASK_DATA(KERNEL_STACK_SIZE)
c14b8494 52 . = ALIGN(KERNEL_STACK_SIZE);
9d1578a3 53 *(.data..init_irqstack)
ca967258 54 DATA_DATA
1da177e4
LT
55 *(.gnu.linkonce.d*)
56 CONSTRUCTORS
57 }
58 .data1 : { *(.data1) }
59 .ctors :
60 {
61 *(.ctors)
62 }
63 .dtors :
64 {
65 *(.dtors)
66 }
67
68 .got : { *(.got.plt) *(.got) }
69 .dynamic : { *(.dynamic) }
ba9950c8
JD
70 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
71 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
1da177e4
LT
72 /* We want the small data sections together, so single-instruction offsets
73 can access them all, and initialized data all before uninitialized, so
74 we can shorten the on-disk segment size. */
75 .sdata : { *(.sdata) }
76 _edata = .;
77 PROVIDE (edata = .);
a7dfa940 78 . = ALIGN(PAGE_SIZE);
5d150a97
TA
79 __bss_start = .;
80 PROVIDE(_bss_start = .);
81 SBSS(0)
82 BSS(0)
a7d0c210 83 _end = .;
1da177e4 84 PROVIDE (end = .);
a7d0c210
PBG
85
86 STABS_DEBUG
87
88 DWARF_DEBUG
405d967d 89
023bf6f1 90 DISCARDS
1da177e4 91}