aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-um/common.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-um/common.lds.S')
-rw-r--r--include/asm-um/common.lds.S104
1 files changed, 104 insertions, 0 deletions
diff --git a/include/asm-um/common.lds.S b/include/asm-um/common.lds.S
new file mode 100644
index 000000000000..a3d6aab0e74d
--- /dev/null
+++ b/include/asm-um/common.lds.S
@@ -0,0 +1,104 @@
1#include <asm-generic/vmlinux.lds.h>
2
3 .fini : { *(.fini) } =0x9090
4 _etext = .;
5 PROVIDE (etext = .);
6
7 . = ALIGN(4096);
8 _sdata = .;
9 PROVIDE (sdata = .);
10
11 . = ALIGN(16); /* Exception table */
12 __start___ex_table = .;
13 __ex_table : { *(__ex_table) }
14 __stop___ex_table = .;
15
16 RODATA
17
18 .unprotected : { *(.unprotected) }
19 . = ALIGN(4096);
20 PROVIDE (_unprotected_end = .);
21
22 . = ALIGN(4096);
23 __uml_setup_start = .;
24 .uml.setup.init : { *(.uml.setup.init) }
25 __uml_setup_end = .;
26
27 __uml_help_start = .;
28 .uml.help.init : { *(.uml.help.init) }
29 __uml_help_end = .;
30
31 __uml_postsetup_start = .;
32 .uml.postsetup.init : { *(.uml.postsetup.init) }
33 __uml_postsetup_end = .;
34
35 __setup_start = .;
36 .init.setup : { *(.init.setup) }
37 __setup_end = .;
38
39 . = ALIGN(32);
40 __per_cpu_start = . ;
41 .data.percpu : { *(.data.percpu) }
42 __per_cpu_end = . ;
43
44 __initcall_start = .;
45 .initcall.init : {
46 *(.initcall1.init)
47 *(.initcall2.init)
48 *(.initcall3.init)
49 *(.initcall4.init)
50 *(.initcall5.init)
51 *(.initcall6.init)
52 *(.initcall7.init)
53 }
54 __initcall_end = .;
55
56 __con_initcall_start = .;
57 .con_initcall.init : { *(.con_initcall.init) }
58 __con_initcall_end = .;
59
60 __uml_initcall_start = .;
61 .uml.initcall.init : { *(.uml.initcall.init) }
62 __uml_initcall_end = .;
63 __init_end = .;
64
65 SECURITY_INIT
66
67 __exitcall_begin = .;
68 .exitcall : { *(.exitcall.exit) }
69 __exitcall_end = .;
70
71 __uml_exitcall_begin = .;
72 .uml.exitcall : { *(.uml.exitcall.exit) }
73 __uml_exitcall_end = .;
74
75 . = ALIGN(4);
76 __alt_instructions = .;
77 .altinstructions : { *(.altinstructions) }
78 __alt_instructions_end = .;
79 .altinstr_replacement : { *(.altinstr_replacement) }
80 /* .exit.text is discard at runtime, not link time, to deal with references
81 from .altinstructions and .eh_frame */
82 .exit.text : { *(.exit.text) }
83 .exit.data : { *(.exit.data) }
84
85 __preinit_array_start = .;
86 .preinit_array : { *(.preinit_array) }
87 __preinit_array_end = .;
88 __init_array_start = .;
89 .init_array : { *(.init_array) }
90 __init_array_end = .;
91 __fini_array_start = .;
92 .fini_array : { *(.fini_array) }
93 __fini_array_end = .;
94
95 . = ALIGN(4096);
96 __initramfs_start = .;
97 .init.ramfs : { *(.init.ramfs) }
98 __initramfs_end = .;
99
100 /* Sections to be discarded */
101 /DISCARD/ : {
102 *(.exitcall.exit)
103 }
104