Al Viro | 9fcdfcd | 2005-09-29 00:31:14 +0100 | [diff] [blame] | 1 | OUTPUT_ARCH(powerpc:common) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | SECTIONS |
| 3 | { |
| 4 | /* Read-only sections, merged into text segment: */ |
| 5 | . = + SIZEOF_HEADERS; |
| 6 | .interp : { *(.interp) } |
| 7 | .hash : { *(.hash) } |
| 8 | .dynsym : { *(.dynsym) } |
| 9 | .dynstr : { *(.dynstr) } |
| 10 | .rel.text : { *(.rel.text) } |
| 11 | .rela.text : { *(.rela.text) } |
| 12 | .rel.data : { *(.rel.data) } |
| 13 | .rela.data : { *(.rela.data) } |
| 14 | .rel.rodata : { *(.rel.rodata) } |
| 15 | .rela.rodata : { *(.rela.rodata) } |
| 16 | .rel.got : { *(.rel.got) } |
| 17 | .rela.got : { *(.rela.got) } |
| 18 | .rel.ctors : { *(.rel.ctors) } |
| 19 | .rela.ctors : { *(.rela.ctors) } |
| 20 | .rel.dtors : { *(.rel.dtors) } |
| 21 | .rela.dtors : { *(.rela.dtors) } |
| 22 | .rel.bss : { *(.rel.bss) } |
| 23 | .rela.bss : { *(.rela.bss) } |
| 24 | .rel.plt : { *(.rel.plt) } |
| 25 | .rela.plt : { *(.rela.plt) } |
| 26 | .plt : { *(.plt) } |
| 27 | .text : |
| 28 | { |
| 29 | *(.text) |
| 30 | *(.fixup) |
| 31 | __relocate_start = .; |
| 32 | *(.relocate_code) |
| 33 | __relocate_end = .; |
| 34 | } |
| 35 | _etext = .; |
| 36 | PROVIDE (etext = .); |
| 37 | |
| 38 | /* Read-write section, merged into data segment: */ |
| 39 | . = ALIGN(4096); |
| 40 | .data : |
| 41 | { |
| 42 | *(.data) |
| 43 | *(.data1) |
| 44 | *(.data.boot) |
| 45 | *(.sdata) |
| 46 | *(.sdata2) |
| 47 | *(.got.plt) *(.got) |
| 48 | *(.dynamic) |
| 49 | *(.rodata) |
| 50 | *(.rodata.*) |
| 51 | *(.rodata1) |
| 52 | *(.got1) |
| 53 | __image_begin = .; |
| 54 | *(.image) |
| 55 | __image_end = .; |
| 56 | . = ALIGN(4096); |
| 57 | __ramdisk_begin = .; |
| 58 | *(.ramdisk) |
| 59 | __ramdisk_end = .; |
| 60 | . = ALIGN(4096); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | CONSTRUCTORS |
| 62 | } |
| 63 | _edata = .; |
| 64 | PROVIDE (edata = .); |
| 65 | |
| 66 | . = ALIGN(4096); |
| 67 | __bss_start = .; |
| 68 | .bss : |
| 69 | { |
| 70 | *(.sbss) *(.scommon) |
| 71 | *(.dynbss) |
| 72 | *(.bss) |
| 73 | *(COMMON) |
| 74 | } |
| 75 | _end = . ; |
| 76 | PROVIDE (end = .); |
| 77 | |
| 78 | /DISCARD/ : { |
| 79 | *(__ksymtab) |
| 80 | *(__ksymtab_strings) |
| 81 | *(__bug_table) |
| 82 | *(__kcrctab) |
| 83 | } |
| 84 | |
| 85 | } |