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;
61 . = ALIGN(SMP_CACHE_BYTES);
62 .data.cacheline_aligned : {
63 *(.data.cacheline_aligned)
65 . = ALIGN(SMP_CACHE_BYTES);
69 /* End of data section */
73 . = ALIGN(THREAD_SIZE);
84 __start___ex_table = .;
86 __stop___ex_table = .;
108 __initcall_start = .;
112 .con_initcall.init : {
113 __con_initcall_start = .;
114 *(.con_initcall.init)
115 __con_initcall_end = .;
120 .tsb_ldquad_phys_patch : {
121 __tsb_ldquad_phys_patch = .;
122 *(.tsb_ldquad_phys_patch)
123 __tsb_ldquad_phys_patch_end = .;
127 __tsb_phys_patch = .;
129 __tsb_phys_patch_end = .;
135 __cpuid_patch_end = .;
138 .sun4v_1insn_patch : {
139 __sun4v_1insn_patch = .;
140 *(.sun4v_1insn_patch)
141 __sun4v_1insn_patch_end = .;
143 .sun4v_2insn_patch : {
144 __sun4v_2insn_patch = .;
145 *(.sun4v_2insn_patch)
146 __sun4v_2insn_patch_end = .;
149 #ifdef CONFIG_BLK_DEV_INITRD
150 . = ALIGN(PAGE_SIZE);
152 __initramfs_start = .;
160 . = ALIGN(PAGE_SIZE);