xref: /linux/arch/um/include/asm/common.lds.S (revision 20bed0d6ff62d985fe8222958825504b8aad4e88)
1/* SPDX-License-Identifier: GPL-2.0 */
2#include <asm-generic/vmlinux.lds.h>
3
4  .fini      : { *(.fini)    } =0x9090
5  _etext = .;
6  PROVIDE (etext = .);
7
8  . = ALIGN(4096);
9  _sdata = .;
10  PROVIDE (sdata = .);
11
12  RO_DATA(4096)
13
14  .lrodata : { *(.lrodata .lrodata.[0-9a-zA-Z_]* .lrodata..L*) }
15
16  .unprotected : { *(.unprotected) }
17  . = ALIGN(4096);
18  PROVIDE (_unprotected_end = .);
19
20  . = ALIGN(4096);
21  EXCEPTION_TABLE(0)
22
23  BUG_TABLE
24
25  .uml.setup.init : {
26	__uml_setup_start = .;
27	*(.uml.setup.init)
28	__uml_setup_end = .;
29  }
30
31  .uml.help.init : {
32	__uml_help_start = .;
33	*(.uml.help.init)
34	__uml_help_end = .;
35  }
36
37  .uml.postsetup.init : {
38	__uml_postsetup_start = .;
39	*(.uml.postsetup.init)
40	__uml_postsetup_end = .;
41  }
42
43  .init.setup : {
44	INIT_SETUP(0)
45  }
46
47  PERCPU_SECTION(32)
48
49  .initcall.init : {
50	INIT_CALLS
51  }
52
53  .con_initcall.init : {
54	CON_INITCALL
55  }
56
57  .exitcall : {
58	__exitcall_begin = .;
59	*(.exitcall.exit)
60	__exitcall_end = .;
61  }
62
63  .uml.exitcall : {
64	__uml_exitcall_begin = .;
65	*(.uml.exitcall.exit)
66	__uml_exitcall_end = .;
67  }
68
69  . = ALIGN(4);
70  .altinstructions : {
71	__alt_instructions = .;
72	*(.altinstructions)
73	__alt_instructions_end = .;
74  }
75  .altinstr_replacement : { *(.altinstr_replacement) }
76  /* .exit.text is discard at runtime, not link time, to deal with references
77     from .altinstructions and .eh_frame */
78  .exit.text : { EXIT_TEXT }
79  .exit.data : { *(.exit.data) }
80
81  .preinit_array : {
82	__preinit_array_start = .;
83	*(.preinit_array)
84	__preinit_array_end = .;
85  }
86  .init_array : {
87	__init_array_start = .;
88	*(.kasan_init)
89	*(.init_array.*)
90	*(.init_array)
91	__init_array_end = .;
92  }
93  .fini_array : {
94	__fini_array_start = .;
95	*(.fini_array)
96	*(.fini_array.*)
97	__fini_array_end = .;
98  }
99
100   . = ALIGN(4096);
101  .init.ramfs : {
102	INIT_RAM_FS
103  }
104
105