Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* ld script to make UltraLinux kernel */ |
| 2 | |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 3 | #include <asm/page.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #include <asm-generic/vmlinux.lds.h> |
| 5 | |
| 6 | OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", "elf64-sparc") |
| 7 | OUTPUT_ARCH(sparc:v9a) |
| 8 | ENTRY(_start) |
| 9 | |
| 10 | jiffies = jiffies_64; |
| 11 | SECTIONS |
| 12 | { |
David S. Miller | 5642530 | 2005-09-25 16:46:57 -0700 | [diff] [blame] | 13 | swapper_low_pmd_dir = 0x0000000000402000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | . = 0x4000; |
| 15 | .text 0x0000000000404000 : |
| 16 | { |
Eric W. Biederman | fd593d1 | 2006-12-07 02:14:04 +0100 | [diff] [blame] | 17 | _text = .; |
Sam Ravnborg | 7664709 | 2007-05-13 00:31:33 +0200 | [diff] [blame] | 18 | TEXT_TEXT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | SCHED_TEXT |
| 20 | LOCK_TEXT |
Prasanna S Panchamukhi | 05e14cb | 2005-09-06 15:19:30 -0700 | [diff] [blame] | 21 | KPROBES_TEXT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | *(.gnu.warning) |
| 23 | } =0 |
| 24 | _etext = .; |
| 25 | PROVIDE (etext = .); |
| 26 | |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 27 | RO_DATA(PAGE_SIZE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | .data : |
| 30 | { |
Sam Ravnborg | ca96725 | 2007-05-17 13:38:44 +0200 | [diff] [blame] | 31 | DATA_DATA |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | CONSTRUCTORS |
| 33 | } |
| 34 | .data1 : { *(.data1) } |
| 35 | . = ALIGN(64); |
| 36 | .data.cacheline_aligned : { *(.data.cacheline_aligned) } |
David S. Miller | d369ddd | 2005-07-10 15:45:11 -0700 | [diff] [blame] | 37 | . = ALIGN(64); |
| 38 | .data.read_mostly : { *(.data.read_mostly) } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | _edata = .; |
| 40 | PROVIDE (edata = .); |
| 41 | .fixup : { *(.fixup) } |
| 42 | |
| 43 | . = ALIGN(16); |
| 44 | __start___ex_table = .; |
| 45 | __ex_table : { *(__ex_table) } |
| 46 | __stop___ex_table = .; |
| 47 | |
David S. Miller | 0c0d345 | 2007-07-22 19:19:05 -0700 | [diff] [blame] | 48 | NOTES |
| 49 | |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 50 | . = ALIGN(PAGE_SIZE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | __init_begin = .; |
| 52 | .init.text : { |
| 53 | _sinittext = .; |
| 54 | *(.init.text) |
| 55 | _einittext = .; |
| 56 | } |
| 57 | .init.data : { *(.init.data) } |
| 58 | . = ALIGN(16); |
| 59 | __setup_start = .; |
| 60 | .init.setup : { *(.init.setup) } |
| 61 | __setup_end = .; |
| 62 | __initcall_start = .; |
| 63 | .initcall.init : { |
Andrew Morton | 61ce1ef | 2006-10-27 11:41:44 -0700 | [diff] [blame] | 64 | INITCALLS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | } |
| 66 | __initcall_end = .; |
| 67 | __con_initcall_start = .; |
| 68 | .con_initcall.init : { *(.con_initcall.init) } |
| 69 | __con_initcall_end = .; |
| 70 | SECURITY_INIT |
David S. Miller | 517af33 | 2006-02-01 15:55:21 -0800 | [diff] [blame] | 71 | . = ALIGN(4); |
David S. Miller | d257d5d | 2006-02-06 23:44:37 -0800 | [diff] [blame] | 72 | __tsb_ldquad_phys_patch = .; |
| 73 | .tsb_ldquad_phys_patch : { *(.tsb_ldquad_phys_patch) } |
| 74 | __tsb_ldquad_phys_patch_end = .; |
David S. Miller | 517af33 | 2006-02-01 15:55:21 -0800 | [diff] [blame] | 75 | __tsb_phys_patch = .; |
| 76 | .tsb_phys_patch : { *(.tsb_phys_patch) } |
| 77 | __tsb_phys_patch_end = .; |
David S. Miller | 92704a1 | 2006-02-26 23:27:19 -0800 | [diff] [blame] | 78 | __cpuid_patch = .; |
| 79 | .cpuid_patch : { *(.cpuid_patch) } |
| 80 | __cpuid_patch_end = .; |
David S. Miller | df7d6ae | 2006-02-07 00:00:16 -0800 | [diff] [blame] | 81 | __sun4v_1insn_patch = .; |
| 82 | .sun4v_1insn_patch : { *(.sun4v_1insn_patch) } |
| 83 | __sun4v_1insn_patch_end = .; |
| 84 | __sun4v_2insn_patch = .; |
| 85 | .sun4v_2insn_patch : { *(.sun4v_2insn_patch) } |
| 86 | __sun4v_2insn_patch_end = .; |
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame] | 87 | |
| 88 | #ifdef CONFIG_BLK_DEV_INITRD |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 89 | . = ALIGN(PAGE_SIZE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | __initramfs_start = .; |
| 91 | .init.ramfs : { *(.init.ramfs) } |
| 92 | __initramfs_end = .; |
Jean-Paul Saman | 67d3822 | 2007-02-10 01:44:44 -0800 | [diff] [blame] | 93 | #endif |
| 94 | |
Fenghua Yu | 5fb7dc3 | 2007-07-19 01:48:12 -0700 | [diff] [blame] | 95 | PERCPU(PAGE_SIZE) |
| 96 | |
Sam Ravnborg | 4096b46 | 2007-05-29 21:29:00 +0200 | [diff] [blame] | 97 | . = ALIGN(PAGE_SIZE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | __init_end = .; |
| 99 | __bss_start = .; |
| 100 | .sbss : { *(.sbss) *(.scommon) } |
| 101 | .bss : |
| 102 | { |
| 103 | *(.dynbss) |
| 104 | *(.bss) |
| 105 | *(COMMON) |
| 106 | } |
| 107 | _end = . ; |
| 108 | PROVIDE (end = .); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } |
David S. Miller | d5784b5 | 2005-12-28 13:22:54 -0800 | [diff] [blame] | 110 | |
| 111 | STABS_DEBUG |
| 112 | |
| 113 | DWARF_DEBUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | } |