blob: cb0248616d49d75ef1ef255210ac393b84b44018 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 RODATA
12
13 .unprotected : { *(.unprotected) }
14 . = ALIGN(4096);
15 PROVIDE (_unprotected_end = .);
16
17 . = ALIGN(4096);
Paolo 'Blaisorblade' Giarrussoc35e5842007-03-31 03:20:27 +020018 .note : { *(.note.*) }
Jeff Dikec7ec16d2007-08-30 23:56:17 -070019 __ex_table : {
20 __start___ex_table = .;
21 *(__ex_table)
22 __stop___ex_table = .;
23 }
Jeff Dike92eac952005-05-01 08:58:53 -070024
Nick Piggin08932a12007-06-23 17:16:37 -070025 BUG_TABLE
26
Jeff Dikec7ec16d2007-08-30 23:56:17 -070027 .uml.setup.init : {
28 __uml_setup_start = .;
29 *(.uml.setup.init)
30 __uml_setup_end = .;
31 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Jeff Dikec7ec16d2007-08-30 23:56:17 -070033 .uml.help.init : {
34 __uml_help_start = .;
35 *(.uml.help.init)
36 __uml_help_end = .;
37 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Jeff Dikec7ec16d2007-08-30 23:56:17 -070039 .uml.postsetup.init : {
40 __uml_postsetup_start = .;
41 *(.uml.postsetup.init)
42 __uml_postsetup_end = .;
43 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
Jeff Dikec7ec16d2007-08-30 23:56:17 -070045 .init.setup : {
46 __setup_start = .;
47 *(.init.setup)
48 __setup_end = .;
49 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
51 . = ALIGN(32);
Jeff Dikec7ec16d2007-08-30 23:56:17 -070052 .data.percpu : {
53 __per_cpu_start = . ;
54 *(.data.percpu)
55 __per_cpu_end = . ;
Linus Torvalds1da177e2005-04-16 15:20:36 -070056 }
Jeff Dikec7ec16d2007-08-30 23:56:17 -070057
58 .initcall.init : {
59 __initcall_start = .;
60 INITCALLS
61 __initcall_end = .;
62 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
Jeff Dikec7ec16d2007-08-30 23:56:17 -070064 .con_initcall.init : {
65 __con_initcall_start = .;
66 *(.con_initcall.init)
67 __con_initcall_end = .;
68 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070069
Jeff Dikec7ec16d2007-08-30 23:56:17 -070070 .uml.initcall.init : {
71 __uml_initcall_start = .;
72 *(.uml.initcall.init)
73 __uml_initcall_end = .;
74 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070075 __init_end = .;
76
77 SECURITY_INIT
78
Jeff Dikec7ec16d2007-08-30 23:56:17 -070079 .exitcall : {
80 __exitcall_begin = .;
81 *(.exitcall.exit)
82 __exitcall_end = .;
83 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070084
Jeff Dikec7ec16d2007-08-30 23:56:17 -070085 .uml.exitcall : {
86 __uml_exitcall_begin = .;
87 *(.uml.exitcall.exit)
88 __uml_exitcall_end = .;
89 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070090
91 . = ALIGN(4);
Jeff Dikec7ec16d2007-08-30 23:56:17 -070092 .altinstructions : {
93 __alt_instructions = .;
94 *(.altinstructions)
95 __alt_instructions_end = .;
96 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070097 .altinstr_replacement : { *(.altinstr_replacement) }
98 /* .exit.text is discard at runtime, not link time, to deal with references
99 from .altinstructions and .eh_frame */
100 .exit.text : { *(.exit.text) }
101 .exit.data : { *(.exit.data) }
102
Jeff Dikec7ec16d2007-08-30 23:56:17 -0700103 .preinit_array : {
104 __preinit_array_start = .;
105 *(.preinit_array)
106 __preinit_array_end = .;
107 }
108 .init_array : {
109 __init_array_start = .;
110 *(.init_array)
111 __init_array_end = .;
112 }
113 .fini_array : {
114 __fini_array_start = .;
115 *(.fini_array)
116 __fini_array_end = .;
117 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118
119 . = ALIGN(4096);
Jeff Dikec7ec16d2007-08-30 23:56:17 -0700120 .init.ramfs : {
121 __initramfs_start = .;
122 *(.init.ramfs)
123 __initramfs_end = .;
124 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125
126 /* Sections to be discarded */
127 /DISCARD/ : {
128 *(.exitcall.exit)
129 }
130