1 /* ld script for sparc32/sparc64 kernel */
3 #include <asm-generic/vmlinux.lds.h>
6 #include <asm/thread_info.h>
9 #define INITIAL_ADDRESS 0x10000 + SIZEOF_HEADERS
10 #define TEXTSTART 0xf0004000
12 #define SMP_CACHE_BYTES_SHIFT 5
15 #define SMP_CACHE_BYTES_SHIFT 6
16 #define INITIAL_ADDRESS 0x4000
17 #define TEXTSTART 0x0000000000404000
21 #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT)
24 OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
27 jiffies = jiffies_64 + 4;
30 OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", "elf64-sparc")
31 OUTPUT_ARCH(sparc:v9a)
38 /* swapper_low_pmd_dir is sparc64 only */
39 swapper_low_pmd_dir = 0x0000000000402000;
62 . = ALIGN(SMP_CACHE_BYTES);
63 .data.cacheline_aligned : {
64 *(.data.cacheline_aligned)
66 . = ALIGN(SMP_CACHE_BYTES);
70 /* End of data section */
75 . = ALIGN(THREAD_SIZE);
86 __start___ex_table = .;
88 __stop___ex_table = .;
110 __initcall_start = .;
114 .con_initcall.init : {
115 __con_initcall_start = .;
116 *(.con_initcall.init)
117 __con_initcall_end = .;
122 .tsb_ldquad_phys_patch : {
123 __tsb_ldquad_phys_patch = .;
124 *(.tsb_ldquad_phys_patch)
125 __tsb_ldquad_phys_patch_end = .;
129 __tsb_phys_patch = .;
131 __tsb_phys_patch_end = .;
137 __cpuid_patch_end = .;
140 .sun4v_1insn_patch : {
141 __sun4v_1insn_patch = .;
142 *(.sun4v_1insn_patch)
143 __sun4v_1insn_patch_end = .;
145 .sun4v_2insn_patch : {
146 __sun4v_2insn_patch = .;
147 *(.sun4v_2insn_patch)
148 __sun4v_2insn_patch_end = .;
151 #ifdef CONFIG_BLK_DEV_INITRD
152 . = ALIGN(PAGE_SIZE);
154 __initramfs_start = .;
162 . = ALIGN(PAGE_SIZE);