]> Git Repo - linux.git/blame - arch/um/kernel/uml.lds.S
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[linux.git] / arch / um / kernel / uml.lds.S
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
0500871f 2#include <asm/vmlinux.lds.h>
a7dfa940 3#include <asm/page.h>
1da177e4
LT
4
5OUTPUT_FORMAT(ELF_FORMAT)
6OUTPUT_ARCH(ELF_ARCH)
7ENTRY(_start)
8jiffies = jiffies_64;
9
10SECTIONS
11{
23bbd586 12 /* This must contain the right address - not quite the default ELF one.*/
1da177e4 13 PROVIDE (__executable_start = START);
23bbd586
JD
14 /* Static binaries stick stuff here, like the sigreturn trampoline,
15 * invisibly to objdump. So, just make __binary_start equal to the very
16 * beginning of the executable, and if there are unmapped pages after this,
17 * they are forever unusable.
18 */
19 __binary_start = START;
1da177e4 20
23bbd586 21 . = START + SIZEOF_HEADERS;
1da177e4 22
d1480c56 23 _text = .;
6915e04f 24 INIT_TEXT_SECTION(0)
a7dfa940 25 . = ALIGN(PAGE_SIZE);
d67b569f 26
1da177e4
LT
27 .text :
28 {
a214a8c6 29 _stext = .;
7664709b 30 TEXT_TEXT
1da177e4 31 SCHED_TEXT
6727ad9e 32 CPUIDLE_TEXT
1da177e4
LT
33 LOCK_TEXT
34 *(.fixup)
35 /* .gnu.warning sections are handled specially by elf32.em. */
36 *(.gnu.warning)
37 *(.gnu.linkonce.t*)
c7ec16da 38 }
d67b569f 39
a7dfa940 40 . = ALIGN(PAGE_SIZE);
c7ec16da
JD
41 .syscall_stub : {
42 __syscall_stub_start = .;
43 *(.__syscall_stub*)
44 __syscall_stub_end = .;
1da177e4
LT
45 }
46
aa5fb4db
RM
47 /*
48 * These are needed even in a static link, even if they wind up being empty.
49 * Newer glibc needs these __rel{,a}_iplt_{start,end} symbols.
50 */
51 .rel.plt : {
52 *(.rel.plt)
53 PROVIDE_HIDDEN(__rel_iplt_start = .);
54 *(.rel.iplt)
55 PROVIDE_HIDDEN(__rel_iplt_end = .);
56 }
57 .rela.plt : {
58 *(.rela.plt)
59 PROVIDE_HIDDEN(__rela_iplt_start = .);
60 *(.rela.iplt)
61 PROVIDE_HIDDEN(__rela_iplt_end = .);
62 }
63
37185b33 64 #include <asm/common.lds.S>
1da177e4 65
a214a8c6 66 __init_begin = .;
01ba2bdc 67 init.data : { INIT_DATA }
a214a8c6
JL
68 __init_end = .;
69
1da177e4
LT
70 .data :
71 {
5d150a97 72 INIT_TASK_DATA(KERNEL_STACK_SIZE)
c14b8494 73 . = ALIGN(KERNEL_STACK_SIZE);
9d1578a3 74 *(.data..init_irqstack)
ca967258 75 DATA_DATA
1da177e4
LT
76 *(.gnu.linkonce.d*)
77 CONSTRUCTORS
78 }
79 .data1 : { *(.data1) }
80 .ctors :
81 {
82 *(.ctors)
83 }
84 .dtors :
85 {
86 *(.dtors)
87 }
88
89 .got : { *(.got.plt) *(.got) }
90 .dynamic : { *(.dynamic) }
ba9950c8
JD
91 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
92 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
1da177e4
LT
93 /* We want the small data sections together, so single-instruction offsets
94 can access them all, and initialized data all before uninitialized, so
95 we can shorten the on-disk segment size. */
96 .sdata : { *(.sdata) }
97 _edata = .;
98 PROVIDE (edata = .);
a7dfa940 99 . = ALIGN(PAGE_SIZE);
5d150a97
TA
100 __bss_start = .;
101 PROVIDE(_bss_start = .);
102 SBSS(0)
103 BSS(0)
a214a8c6 104 __bss_stop = .;
a7d0c210 105 _end = .;
1da177e4 106 PROVIDE (end = .);
a7d0c210
PBG
107
108 STABS_DEBUG
109
110 DWARF_DEBUG
405d967d 111
023bf6f1 112 DISCARDS
1da177e4 113}
This page took 0.856922 seconds and 4 git commands to generate.