]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/um/kernel/uml.lds.S
[PATCH] uml: remove some useless exports
[mirror_ubuntu-bionic-kernel.git] / arch / um / kernel / uml.lds.S
CommitLineData
1da177e4
LT
1#include <asm-generic/vmlinux.lds.h>
2
3OUTPUT_FORMAT(ELF_FORMAT)
4OUTPUT_ARCH(ELF_ARCH)
5ENTRY(_start)
6jiffies = jiffies_64;
7
8SECTIONS
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 = .;
1da177e4 17
60b2737d 18#ifdef MODE_TT
1c30385a
PBG
19 .remap_data : { UNMAP_PATH (.data .bss) }
20 .remap : { UNMAP_PATH (.text) }
1da177e4
LT
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);
d67b569f 33
1da177e4
LT
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*)
d67b569f
JD
43
44 . = ALIGN(4096);
45 __syscall_stub_start = .;
46 *(.__syscall_stub*)
47 __syscall_stub_end = .;
48 . = ALIGN(4096);
1da177e4
LT
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) }
ba9950c8
JD
74 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
75 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
1da177e4
LT
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 }
a7d0c210 96 _end = .;
1da177e4 97 PROVIDE (end = .);
a7d0c210
PBG
98
99 STABS_DEBUG
100
101 DWARF_DEBUG
1da177e4 102}