1 #include <asm/asm-offsets.h>
3 #include <asm/thread_info.h>
6 * Put .bss..swapper_pg_dir as the first thing in .bss. This will
7 * ensure that it has .bss alignment (64K).
9 #define BSS_FIRST_SECTIONS *(.bss..swapper_pg_dir)
11 #include <asm-generic/vmlinux.lds.h>
18 text PT_LOAD FLAGS(7); /* RWX */
19 note PT_NOTE FLAGS(4); /* R__ */
23 #ifdef CONFIG_CPU_LITTLE_ENDIAN
26 jiffies = jiffies_64 + 4;
34 #ifdef CONFIG_BOOT_ELF64
35 /* Read-only sections, merged into text segment: */
36 /* . = 0xc000000000000000; */
38 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
39 /* . = 0xc00000000001c000; */
41 /* Set the vaddr for the text segment to a value
42 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
43 * >= 0xa800 0000 0030 0000 otherwise
46 /* . = 0xa800000000300000; */
47 . = 0xffffffff80300000;
49 . = VMLINUX_LOAD_ADDRESS;
51 _text = .; /* Text and read-only data */
62 _etext = .; /* End of text section */
66 /* Exception table for data bus errors */
68 __start___dbe_table = .;
70 __stop___dbe_table = .;
74 .dummy : { *(.dummy) } :text
76 _sdata = .; /* Start of data section */
81 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
83 INIT_TASK_DATA(THREAD_SIZE)
85 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
86 READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
97 /* We want the small data sections together, so single-instruction offsets
98 can access them all, and initialized data all before uninitialized, so
99 we can shorten the on-disk segment size. */
103 _edata = .; /* End of data section */
105 /* will be freed after init */
106 . = ALIGN(PAGE_SIZE); /* Init code and data */
108 INIT_TEXT_SECTION(PAGE_SIZE)
109 INIT_DATA_SECTION(16)
112 .mips.machines.init : AT(ADDR(.mips.machines.init) - LOAD_OFFSET) {
113 __mips_machines_start = .;
114 *(.mips.machines.init)
115 __mips_machines_end = .;
118 /* .exit.text is discarded at runtime, not link time, to deal with
119 * references from .rodata
128 PERCPU_SECTION(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
130 * Align to 64K in attempt to eliminate holes before the
131 * .bss..swapper_pg_dir section at the start of .bss. This
132 * also satisfies PAGE_SIZE alignment as the largest page size
137 /* freed after init ends here */
140 * Force .bss to 64K alignment so that .bss..swapper_pg_dir
141 * gets that alignment. .sbss should be empty, so there will be
142 * no holes after __init_end. */
143 BSS_SECTION(0, 0x10000, 0)
147 /* These mark the ABI of the kernel for debuggers. */
149 KEEP(*(.mdebug.abi32))
152 KEEP(*(.mdebug.abi64))
155 /* This is the MIPS specific mdebug section. */
163 /* These must appear regardless of . */
173 /* Sections to be discarded */
176 /* ABI crap starts here */