Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | RODATA |
| 12 | |
| 13 | .unprotected : { *(.unprotected) } |
| 14 | . = ALIGN(4096); |
| 15 | PROVIDE (_unprotected_end = .); |
| 16 | |
| 17 | . = ALIGN(4096); |
Paolo 'Blaisorblade' Giarrusso | c35e584 | 2007-03-31 03:20:27 +0200 | [diff] [blame] | 18 | .note : { *(.note.*) } |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 19 | __ex_table : { |
| 20 | __start___ex_table = .; |
| 21 | *(__ex_table) |
| 22 | __stop___ex_table = .; |
| 23 | } |
Jeff Dike | 92eac95 | 2005-05-01 08:58:53 -0700 | [diff] [blame] | 24 | |
Nick Piggin | 08932a1 | 2007-06-23 17:16:37 -0700 | [diff] [blame] | 25 | BUG_TABLE |
| 26 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 27 | .uml.setup.init : { |
| 28 | __uml_setup_start = .; |
| 29 | *(.uml.setup.init) |
| 30 | __uml_setup_end = .; |
| 31 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 33 | .uml.help.init : { |
| 34 | __uml_help_start = .; |
| 35 | *(.uml.help.init) |
| 36 | __uml_help_end = .; |
| 37 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 39 | .uml.postsetup.init : { |
| 40 | __uml_postsetup_start = .; |
| 41 | *(.uml.postsetup.init) |
| 42 | __uml_postsetup_end = .; |
| 43 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 45 | .init.setup : { |
| 46 | __setup_start = .; |
| 47 | *(.init.setup) |
| 48 | __setup_end = .; |
| 49 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | |
| 51 | . = ALIGN(32); |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 52 | .data.percpu : { |
| 53 | __per_cpu_start = . ; |
| 54 | *(.data.percpu) |
| 55 | __per_cpu_end = . ; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | } |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 57 | |
| 58 | .initcall.init : { |
| 59 | __initcall_start = .; |
| 60 | INITCALLS |
| 61 | __initcall_end = .; |
| 62 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 64 | .con_initcall.init : { |
| 65 | __con_initcall_start = .; |
| 66 | *(.con_initcall.init) |
| 67 | __con_initcall_end = .; |
| 68 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 70 | .uml.initcall.init : { |
| 71 | __uml_initcall_start = .; |
| 72 | *(.uml.initcall.init) |
| 73 | __uml_initcall_end = .; |
| 74 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | __init_end = .; |
| 76 | |
| 77 | SECURITY_INIT |
| 78 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 79 | .exitcall : { |
| 80 | __exitcall_begin = .; |
| 81 | *(.exitcall.exit) |
| 82 | __exitcall_end = .; |
| 83 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 84 | |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 85 | .uml.exitcall : { |
| 86 | __uml_exitcall_begin = .; |
| 87 | *(.uml.exitcall.exit) |
| 88 | __uml_exitcall_end = .; |
| 89 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
| 91 | . = ALIGN(4); |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 92 | .altinstructions : { |
| 93 | __alt_instructions = .; |
| 94 | *(.altinstructions) |
| 95 | __alt_instructions_end = .; |
| 96 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | .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 Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 103 | .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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 118 | |
| 119 | . = ALIGN(4096); |
Jeff Dike | c7ec16d | 2007-08-30 23:56:17 -0700 | [diff] [blame] | 120 | .init.ramfs : { |
| 121 | __initramfs_start = .; |
| 122 | *(.init.ramfs) |
| 123 | __initramfs_end = .; |
| 124 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | |
| 126 | /* Sections to be discarded */ |
| 127 | /DISCARD/ : { |
| 128 | *(.exitcall.exit) |
| 129 | } |
| 130 | |