| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #include <asm-generic/vmlinux.lds.h> | 
|  | 2 |  | 
|  | 3 | OUTPUT_ARCH(powerpc:common) | 
|  | 4 | jiffies = jiffies_64 + 4; | 
|  | 5 | SECTIONS | 
|  | 6 | { | 
|  | 7 | /* Read-only sections, merged into text segment: */ | 
|  | 8 | . = + SIZEOF_HEADERS; | 
|  | 9 | .interp : { *(.interp) } | 
|  | 10 | .hash          : { *(.hash)		} | 
|  | 11 | .dynsym        : { *(.dynsym)		} | 
|  | 12 | .dynstr        : { *(.dynstr)		} | 
|  | 13 | .rel.text      : { *(.rel.text)		} | 
|  | 14 | .rela.text     : { *(.rela.text) 	} | 
|  | 15 | .rel.data      : { *(.rel.data)		} | 
|  | 16 | .rela.data     : { *(.rela.data) 	} | 
|  | 17 | .rel.rodata    : { *(.rel.rodata) 	} | 
|  | 18 | .rela.rodata   : { *(.rela.rodata) 	} | 
|  | 19 | .rel.got       : { *(.rel.got)		} | 
|  | 20 | .rela.got      : { *(.rela.got)		} | 
|  | 21 | .rel.ctors     : { *(.rel.ctors)	} | 
|  | 22 | .rela.ctors    : { *(.rela.ctors)	} | 
|  | 23 | .rel.dtors     : { *(.rel.dtors)	} | 
|  | 24 | .rela.dtors    : { *(.rela.dtors)	} | 
|  | 25 | .rel.bss       : { *(.rel.bss)		} | 
|  | 26 | .rela.bss      : { *(.rela.bss)		} | 
|  | 27 | .rel.plt       : { *(.rel.plt)		} | 
|  | 28 | .rela.plt      : { *(.rela.plt)		} | 
|  | 29 | /*  .init          : { *(.init)	} =0*/ | 
|  | 30 | .plt : { *(.plt) } | 
|  | 31 | .text      : | 
|  | 32 | { | 
|  | 33 | *(.text) | 
|  | 34 | SCHED_TEXT | 
|  | 35 | LOCK_TEXT | 
|  | 36 | *(.fixup) | 
|  | 37 | *(.got1) | 
|  | 38 | __got2_start = .; | 
|  | 39 | *(.got2) | 
|  | 40 | __got2_end = .; | 
|  | 41 | } | 
|  | 42 | _etext = .; | 
|  | 43 | PROVIDE (etext = .); | 
|  | 44 |  | 
|  | 45 | RODATA | 
|  | 46 | .fini      : { *(.fini)    } =0 | 
|  | 47 | .ctors     : { *(.ctors)   } | 
|  | 48 | .dtors     : { *(.dtors)   } | 
|  | 49 |  | 
|  | 50 | .fixup   : { *(.fixup) } | 
|  | 51 |  | 
|  | 52 | __ex_table : { | 
|  | 53 | __start___ex_table = .; | 
|  | 54 | *(__ex_table) | 
|  | 55 | __stop___ex_table = .; | 
|  | 56 | } | 
|  | 57 |  | 
|  | 58 | __bug_table : { | 
|  | 59 | __start___bug_table = .; | 
|  | 60 | *(__bug_table) | 
|  | 61 | __stop___bug_table = .; | 
|  | 62 | } | 
|  | 63 |  | 
|  | 64 | /* Read-write section, merged into data segment: */ | 
|  | 65 | . = ALIGN(4096); | 
|  | 66 | .data    : | 
|  | 67 | { | 
|  | 68 | *(.data) | 
|  | 69 | *(.data1) | 
|  | 70 | *(.sdata) | 
|  | 71 | *(.sdata2) | 
|  | 72 | *(.got.plt) *(.got) | 
|  | 73 | *(.dynamic) | 
|  | 74 | CONSTRUCTORS | 
|  | 75 | } | 
|  | 76 |  | 
|  | 77 | . = ALIGN(4096); | 
|  | 78 | __nosave_begin = .; | 
|  | 79 | .data_nosave : { *(.data.nosave) } | 
|  | 80 | . = ALIGN(4096); | 
|  | 81 | __nosave_end = .; | 
|  | 82 |  | 
|  | 83 | . = ALIGN(32); | 
|  | 84 | .data.cacheline_aligned : { *(.data.cacheline_aligned) } | 
|  | 85 |  | 
|  | 86 | _edata  =  .; | 
|  | 87 | PROVIDE (edata = .); | 
|  | 88 |  | 
|  | 89 | . = ALIGN(8192); | 
|  | 90 | .data.init_task : { *(.data.init_task) } | 
|  | 91 |  | 
|  | 92 | . = ALIGN(4096); | 
|  | 93 | __init_begin = .; | 
|  | 94 | .init.text : { | 
|  | 95 | _sinittext = .; | 
|  | 96 | *(.init.text) | 
|  | 97 | _einittext = .; | 
|  | 98 | } | 
|  | 99 | .init.data : { | 
|  | 100 | *(.init.data); | 
|  | 101 | __vtop_table_begin = .; | 
|  | 102 | *(.vtop_fixup); | 
|  | 103 | __vtop_table_end = .; | 
|  | 104 | __ptov_table_begin = .; | 
|  | 105 | *(.ptov_fixup); | 
|  | 106 | __ptov_table_end = .; | 
|  | 107 | } | 
|  | 108 | . = ALIGN(16); | 
|  | 109 | __setup_start = .; | 
|  | 110 | .init.setup : { *(.init.setup) } | 
|  | 111 | __setup_end = .; | 
|  | 112 | __initcall_start = .; | 
|  | 113 | .initcall.init : { | 
|  | 114 | *(.initcall1.init) | 
|  | 115 | *(.initcall2.init) | 
|  | 116 | *(.initcall3.init) | 
|  | 117 | *(.initcall4.init) | 
|  | 118 | *(.initcall5.init) | 
|  | 119 | *(.initcall6.init) | 
|  | 120 | *(.initcall7.init) | 
|  | 121 | } | 
|  | 122 | __initcall_end = .; | 
|  | 123 |  | 
|  | 124 | __con_initcall_start = .; | 
|  | 125 | .con_initcall.init : { *(.con_initcall.init) } | 
|  | 126 | __con_initcall_end = .; | 
|  | 127 |  | 
|  | 128 | SECURITY_INIT | 
|  | 129 |  | 
|  | 130 | __start___ftr_fixup = .; | 
|  | 131 | __ftr_fixup : { *(__ftr_fixup) } | 
|  | 132 | __stop___ftr_fixup = .; | 
|  | 133 |  | 
|  | 134 | . = ALIGN(32); | 
|  | 135 | __per_cpu_start = .; | 
|  | 136 | .data.percpu  : { *(.data.percpu) } | 
|  | 137 | __per_cpu_end = .; | 
|  | 138 |  | 
|  | 139 | . = ALIGN(4096); | 
|  | 140 | __initramfs_start = .; | 
|  | 141 | .init.ramfs : { *(.init.ramfs) } | 
|  | 142 | __initramfs_end = .; | 
|  | 143 |  | 
|  | 144 | . = ALIGN(4096); | 
|  | 145 | __init_end = .; | 
|  | 146 |  | 
|  | 147 | . = ALIGN(4096); | 
| David Woodhouse | 075d6eb | 2005-05-05 16:15:09 -0700 | [diff] [blame] | 148 | _sextratext = .; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | __pmac_begin = .; | 
|  | 150 | .pmac.text : { *(.pmac.text) } | 
|  | 151 | .pmac.data : { *(.pmac.data) } | 
|  | 152 | . = ALIGN(4096); | 
|  | 153 | __pmac_end = .; | 
|  | 154 |  | 
|  | 155 | . = ALIGN(4096); | 
|  | 156 | __prep_begin = .; | 
|  | 157 | .prep.text : { *(.prep.text) } | 
|  | 158 | .prep.data : { *(.prep.data) } | 
|  | 159 | . = ALIGN(4096); | 
|  | 160 | __prep_end = .; | 
|  | 161 |  | 
|  | 162 | . = ALIGN(4096); | 
|  | 163 | __chrp_begin = .; | 
|  | 164 | .chrp.text : { *(.chrp.text) } | 
|  | 165 | .chrp.data : { *(.chrp.data) } | 
|  | 166 | . = ALIGN(4096); | 
|  | 167 | __chrp_end = .; | 
|  | 168 |  | 
|  | 169 | . = ALIGN(4096); | 
|  | 170 | __openfirmware_begin = .; | 
|  | 171 | .openfirmware.text : { *(.openfirmware.text) } | 
|  | 172 | .openfirmware.data : { *(.openfirmware.data) } | 
|  | 173 | . = ALIGN(4096); | 
|  | 174 | __openfirmware_end = .; | 
| David Woodhouse | 075d6eb | 2005-05-05 16:15:09 -0700 | [diff] [blame] | 175 | _eextratext = .; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 176 |  | 
|  | 177 | __bss_start = .; | 
|  | 178 | .bss       : | 
|  | 179 | { | 
|  | 180 | *(.sbss) *(.scommon) | 
|  | 181 | *(.dynbss) | 
|  | 182 | *(.bss) | 
|  | 183 | *(COMMON) | 
|  | 184 | } | 
|  | 185 | __bss_stop = .; | 
|  | 186 |  | 
|  | 187 | _end = . ; | 
|  | 188 | PROVIDE (end = .); | 
|  | 189 |  | 
|  | 190 | /* Sections to be discarded. */ | 
|  | 191 | /DISCARD/ : { | 
|  | 192 | *(.exitcall.exit) | 
|  | 193 | } | 
|  | 194 | } |