]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | { | |
23bbd586 | 10 | /* This must contain the right address - not quite the default ELF one.*/ |
1da177e4 | 11 | PROVIDE (__executable_start = START); |
23bbd586 JD |
12 | /* Static binaries stick stuff here, like the sigreturn trampoline, |
13 | * invisibly to objdump. So, just make __binary_start equal to the very | |
14 | * beginning of the executable, and if there are unmapped pages after this, | |
15 | * they are forever unusable. | |
16 | */ | |
17 | __binary_start = START; | |
1da177e4 | 18 | |
23bbd586 | 19 | . = START + SIZEOF_HEADERS; |
1da177e4 | 20 | |
60b2737d | 21 | #ifdef MODE_TT |
1c30385a PBG |
22 | .remap_data : { UNMAP_PATH (.data .bss) } |
23 | .remap : { UNMAP_PATH (.text) } | |
1da177e4 LT |
24 | |
25 | . = ALIGN(4096); /* Init code and data */ | |
26 | #endif | |
27 | ||
28 | _stext = .; | |
29 | __init_begin = .; | |
30 | .init.text : { | |
31 | _sinittext = .; | |
32 | *(.init.text) | |
33 | _einittext = .; | |
34 | } | |
35 | . = ALIGN(4096); | |
d67b569f | 36 | |
1da177e4 LT |
37 | .text : |
38 | { | |
39 | *(.text) | |
40 | SCHED_TEXT | |
41 | LOCK_TEXT | |
42 | *(.fixup) | |
43 | /* .gnu.warning sections are handled specially by elf32.em. */ | |
44 | *(.gnu.warning) | |
45 | *(.gnu.linkonce.t*) | |
d67b569f JD |
46 | |
47 | . = ALIGN(4096); | |
48 | __syscall_stub_start = .; | |
49 | *(.__syscall_stub*) | |
50 | __syscall_stub_end = .; | |
51 | . = ALIGN(4096); | |
1da177e4 LT |
52 | } |
53 | ||
54 | #include "asm/common.lds.S" | |
55 | ||
56 | init.data : { *(init.data) } | |
57 | .data : | |
58 | { | |
59 | . = ALIGN(KERNEL_STACK_SIZE); /* init_task */ | |
60 | *(.data.init_task) | |
61 | *(.data) | |
62 | *(.gnu.linkonce.d*) | |
63 | CONSTRUCTORS | |
64 | } | |
65 | .data1 : { *(.data1) } | |
66 | .ctors : | |
67 | { | |
68 | *(.ctors) | |
69 | } | |
70 | .dtors : | |
71 | { | |
72 | *(.dtors) | |
73 | } | |
74 | ||
75 | .got : { *(.got.plt) *(.got) } | |
76 | .dynamic : { *(.dynamic) } | |
ba9950c8 JD |
77 | .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } |
78 | .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } | |
1da177e4 LT |
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 | . = ALIGN(0x1000); | |
86 | .sbss : | |
87 | { | |
88 | __bss_start = .; | |
89 | PROVIDE(_bss_start = .); | |
90 | *(.sbss) | |
91 | *(.scommon) | |
92 | } | |
93 | .bss : | |
94 | { | |
95 | *(.dynbss) | |
96 | *(.bss) | |
97 | *(COMMON) | |
98 | } | |
a7d0c210 | 99 | _end = .; |
1da177e4 | 100 | PROVIDE (end = .); |
a7d0c210 PBG |
101 | |
102 | STABS_DEBUG | |
103 | ||
104 | DWARF_DEBUG | |
1da177e4 | 105 | } |