]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/um/kernel/uml.lds.S
nmi_backtrace: generate one-line reports for idle cpus
[mirror_ubuntu-bionic-kernel.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 = .;
6915e04f 23 INIT_TEXT_SECTION(0)
a7dfa940 24 . = ALIGN(PAGE_SIZE);
d67b569f 25
1da177e4
LT
26 .text :
27 {
a214a8c6 28 _stext = .;
7664709b 29 TEXT_TEXT
1da177e4 30 SCHED_TEXT
6727ad9e 31 CPUIDLE_TEXT
1da177e4
LT
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
aa5fb4db
RM
46 /*
47 * These are needed even in a static link, even if they wind up being empty.
48 * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols.
49 */
50 .rel.plt : {
51 *(.rel.plt)
52 PROVIDE_HIDDEN(__rel_iplt_start = .);
53 *(.rel.iplt)
54 PROVIDE_HIDDEN(__rel_iplt_end = .);
55 }
56 .rela.plt : {
57 *(.rela.plt)
58 PROVIDE_HIDDEN(__rela_iplt_start = .);
59 *(.rela.iplt)
60 PROVIDE_HIDDEN(__rela_iplt_end = .);
61 }
62
37185b33 63 #include <asm/common.lds.S>
1da177e4 64
a214a8c6 65 __init_begin = .;
01ba2bdc 66 init.data : { INIT_DATA }
a214a8c6
JL
67 __init_end = .;
68
1da177e4
LT
69 .data :
70 {
5d150a97 71 INIT_TASK_DATA(KERNEL_STACK_SIZE)
c14b8494 72 . = ALIGN(KERNEL_STACK_SIZE);
9d1578a3 73 *(.data..init_irqstack)
ca967258 74 DATA_DATA
1da177e4
LT
75 *(.gnu.linkonce.d*)
76 CONSTRUCTORS
77 }
78 .data1 : { *(.data1) }
79 .ctors :
80 {
81 *(.ctors)
82 }
83 .dtors :
84 {
85 *(.dtors)
86 }
87
88 .got : { *(.got.plt) *(.got) }
89 .dynamic : { *(.dynamic) }
ba9950c8
JD
90 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
91 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
1da177e4
LT
92 /* We want the small data sections together, so single-instruction offsets
93 can access them all, and initialized data all before uninitialized, so
94 we can shorten the on-disk segment size. */
95 .sdata : { *(.sdata) }
96 _edata = .;
97 PROVIDE (edata = .);
a7dfa940 98 . = ALIGN(PAGE_SIZE);
5d150a97
TA
99 __bss_start = .;
100 PROVIDE(_bss_start = .);
101 SBSS(0)
102 BSS(0)
a214a8c6 103 __bss_stop = .;
a7d0c210 104 _end = .;
1da177e4 105 PROVIDE (end = .);
a7d0c210
PBG
106
107 STABS_DEBUG
108
109 DWARF_DEBUG
405d967d 110
023bf6f1 111 DISCARDS
1da177e4 112}