]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/um/kernel/uml.lds.S
microblaze: include EXIT_TEXT to _stext
[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 = .;
1da177e4
LT
23 _stext = .;
24 __init_begin = .;
25 .init.text : {
26 _sinittext = .;
01ba2bdc 27 INIT_TEXT
1da177e4
LT
28 _einittext = .;
29 }
a7dfa940 30 . = ALIGN(PAGE_SIZE);
d67b569f 31
1da177e4
LT
32 .text :
33 {
7664709b 34 TEXT_TEXT
1da177e4
LT
35 SCHED_TEXT
36 LOCK_TEXT
37 *(.fixup)
38 /* .gnu.warning sections are handled specially by elf32.em. */
39 *(.gnu.warning)
40 *(.gnu.linkonce.t*)
c7ec16da 41 }
d67b569f 42
a7dfa940 43 . = ALIGN(PAGE_SIZE);
c7ec16da
JD
44 .syscall_stub : {
45 __syscall_stub_start = .;
46 *(.__syscall_stub*)
47 __syscall_stub_end = .;
1da177e4
LT
48 }
49
50 #include "asm/common.lds.S"
51
01ba2bdc 52 init.data : { INIT_DATA }
1da177e4
LT
53 .data :
54 {
55 . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
56 *(.data.init_task)
c14b8494
JD
57 . = ALIGN(KERNEL_STACK_SIZE);
58 *(.data.init_irqstack)
ca967258 59 DATA_DATA
1da177e4
LT
60 *(.gnu.linkonce.d*)
61 CONSTRUCTORS
62 }
63 .data1 : { *(.data1) }
64 .ctors :
65 {
66 *(.ctors)
67 }
68 .dtors :
69 {
70 *(.dtors)
71 }
72
73 .got : { *(.got.plt) *(.got) }
74 .dynamic : { *(.dynamic) }
ba9950c8
JD
75 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
76 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
1da177e4
LT
77 /* We want the small data sections together, so single-instruction offsets
78 can access them all, and initialized data all before uninitialized, so
79 we can shorten the on-disk segment size. */
80 .sdata : { *(.sdata) }
81 _edata = .;
82 PROVIDE (edata = .);
a7dfa940 83 . = ALIGN(PAGE_SIZE);
1da177e4
LT
84 .sbss :
85 {
86 __bss_start = .;
87 PROVIDE(_bss_start = .);
88 *(.sbss)
89 *(.scommon)
90 }
91 .bss :
92 {
93 *(.dynbss)
94 *(.bss)
95 *(COMMON)
96 }
a7d0c210 97 _end = .;
1da177e4 98 PROVIDE (end = .);
a7d0c210
PBG
99
100 STABS_DEBUG
101
102 DWARF_DEBUG
405d967d
TH
103
104 /DISCARD/ : { *(.discard) }
1da177e4 105}