Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* ld script to make SparcLinux kernel */ |
| 2 | |
| 3 | #include <asm-generic/vmlinux.lds.h> |
| 4 | |
| 5 | OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc") |
| 6 | OUTPUT_ARCH(sparc) |
| 7 | ENTRY(_start) |
| 8 | jiffies = jiffies_64 + 4; |
| 9 | SECTIONS |
| 10 | { |
| 11 | . = 0x10000 + SIZEOF_HEADERS; |
| 12 | .text 0xf0004000 : |
| 13 | { |
Eric W. Biederman | fd593d1 | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 14 | _text = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | *(.text) |
| 16 | SCHED_TEXT |
| 17 | LOCK_TEXT |
| 18 | *(.gnu.warning) |
| 19 | } =0 |
| 20 | _etext = .; |
| 21 | PROVIDE (etext = .); |
| 22 | RODATA |
| 23 | .data : |
| 24 | { |
| 25 | *(.data) |
| 26 | CONSTRUCTORS |
| 27 | } |
| 28 | .data1 : { *(.data1) } |
| 29 | _edata = .; |
| 30 | PROVIDE (edata = .); |
| 31 | __start___fixup = .; |
| 32 | .fixup : { *(.fixup) } |
| 33 | __stop___fixup = .; |
| 34 | __start___ex_table = .; |
| 35 | __ex_table : { *(__ex_table) } |
| 36 | __stop___ex_table = .; |
| 37 | |
| 38 | . = ALIGN(4096); |
| 39 | __init_begin = .; |
Martin Habets | ab5da28 | 2006-10-11 14:58:30 -0700 | [diff] [blame] | 40 | _sinittext = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | .init.text : { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | *(.init.text) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | } |
Martin Habets | ab5da28 | 2006-10-11 14:58:30 -0700 | [diff] [blame] | 44 | _einittext = .; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | __init_text_end = .; |
| 46 | .init.data : { *(.init.data) } |
| 47 | . = ALIGN(16); |
| 48 | __setup_start = .; |
| 49 | .init.setup : { *(.init.setup) } |
| 50 | __setup_end = .; |
| 51 | __initcall_start = .; |
| 52 | .initcall.init : { |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 53 | INITCALLS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | } |
| 55 | __initcall_end = .; |
| 56 | __con_initcall_start = .; |
| 57 | .con_initcall.init : { *(.con_initcall.init) } |
| 58 | __con_initcall_end = .; |
| 59 | SECURITY_INIT |
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame^] | 60 | |
| 61 | #ifdef CONFIG_BLK_DEV_INITRD |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | . = ALIGN(4096); |
| 63 | __initramfs_start = .; |
| 64 | .init.ramfs : { *(.init.ramfs) } |
| 65 | __initramfs_end = .; |
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame^] | 66 | #endif |
| 67 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | . = ALIGN(32); |
| 69 | __per_cpu_start = .; |
| 70 | .data.percpu : { *(.data.percpu) } |
| 71 | __per_cpu_end = .; |
| 72 | . = ALIGN(4096); |
| 73 | __init_end = .; |
| 74 | . = ALIGN(32); |
| 75 | .data.cacheline_aligned : { *(.data.cacheline_aligned) } |
| 76 | |
| 77 | __bss_start = .; |
| 78 | .sbss : { *(.sbss) *(.scommon) } |
| 79 | .bss : |
| 80 | { |
| 81 | *(.dynbss) |
| 82 | *(.bss) |
| 83 | *(COMMON) |
| 84 | } |
| 85 | _end = . ; |
| 86 | PROVIDE (end = .); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } |
David S. Miller | d5784b5 | 2005-12-28 13:22:54 -0800 | [diff] [blame] | 88 | |
| 89 | STABS_DEBUG |
| 90 | |
| 91 | DWARF_DEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | } |