1 /* ld script for sparc32/sparc64 kernel */
3 #include <asm-generic/vmlinux.lds.h>
7 #define INITIAL_ADDRESS 0x10000 + SIZEOF_HEADERS
8 #define TEXTSTART 0xf0004000
10 #define SMP_CACHE_BYTES_SHIFT 5
13 #define SMP_CACHE_BYTES_SHIFT 6
14 #define INITIAL_ADDRESS 0x4000
15 #define TEXTSTART 0x0000000000404000
19 #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT)
22 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
25 jiffies = jiffies_64 + 4;
28 OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", "elf64-sparc")
29 OUTPUT_ARCH(sparc:v9a)
36 /* swapper_low_pmd_dir is sparc64 only */
37 swapper_low_pmd_dir = 0x0000000000402000;
60 . = ALIGN(SMP_CACHE_BYTES);
61 .data.cacheline_aligned : {
62 *(.data.cacheline_aligned)
64 . = ALIGN(SMP_CACHE_BYTES);
77 __start___ex_table = .;
79 __stop___ex_table = .;
101 __initcall_start = .;
105 .con_initcall.init : {
106 __con_initcall_start = .;
107 *(.con_initcall.init)
108 __con_initcall_end = .;
113 .tsb_ldquad_phys_patch : {
114 __tsb_ldquad_phys_patch = .;
115 *(.tsb_ldquad_phys_patch)
116 __tsb_ldquad_phys_patch_end = .;
120 __tsb_phys_patch = .;
122 __tsb_phys_patch_end = .;
128 __cpuid_patch_end = .;
131 .sun4v_1insn_patch : {
132 __sun4v_1insn_patch = .;
133 *(.sun4v_1insn_patch)
134 __sun4v_1insn_patch_end = .;
136 .sun4v_2insn_patch : {
137 __sun4v_2insn_patch = .;
138 *(.sun4v_2insn_patch)
139 __sun4v_2insn_patch_end = .;
142 #ifdef CONFIG_BLK_DEV_INITRD
143 . = ALIGN(PAGE_SIZE);
145 __initramfs_start = .;
153 . = ALIGN(PAGE_SIZE);