1 #include <asm/asm-offsets.h>
2 #include <asm-generic/vmlinux.lds.h>
9 text PT_LOAD FLAGS(7); /* RWX */
10 note PT_NOTE FLAGS(4); /* R__ */
14 #ifdef CONFIG_CPU_LITTLE_ENDIAN
17 jiffies = jiffies_64 + 4;
25 #ifdef CONFIG_BOOT_ELF64
26 /* Read-only sections, merged into text segment: */
27 /* . = 0xc000000000000000; */
29 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
30 /* . = 0xc00000000001c000; */
32 /* Set the vaddr for the text segment to a value
33 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
34 * >= 0xa800 0000 0030 0000 otherwise
37 /* . = 0xa800000000300000; */
38 . = 0xffffffff80300000;
40 . = VMLINUX_LOAD_ADDRESS;
42 _text = .; /* Text and read-only data */
52 _etext = .; /* End of text section */
57 __start___ex_table = .;
59 __stop___ex_table = .;
62 /* Exception table for data bus errors */
64 __start___dbe_table = .;
66 __stop___dbe_table = .;
70 .dummy : { *(.dummy) } :text
76 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
78 * This ALIGN is needed as a workaround for a bug a
79 * gcc bug upto 4.1 which limits the maximum alignment
80 * to at most 32kB and results in the following
83 * CC arch/mips/kernel/init_task.o
84 * arch/mips/kernel/init_task.c:30: warning: alignment
85 * of ‘init_thread_union’ is greater than maximum
86 * object file alignment. Using 32768
88 . = ALIGN(_PAGE_SIZE);
101 /* We want the small data sections together, so single-instruction offsets
102 can access them all, and initialized data all before uninitialized, so
103 we can shorten the on-disk segment size. */
108 . = ALIGN(_PAGE_SIZE);
113 . = ALIGN(_PAGE_SIZE);
116 . = ALIGN(1 << CONFIG_MIPS_L1_CACHE_SHIFT);
117 .data.cacheline_aligned : {
118 *(.data.cacheline_aligned)
120 _edata = .; /* End of data section */
122 /* will be freed after init */
123 . = ALIGN(_PAGE_SIZE); /* Init code and data */
141 __initcall_start = .;
146 .con_initcall.init : {
147 __con_initcall_start = .;
148 *(.con_initcall.init)
149 __con_initcall_end = .;
153 /* .exit.text is discarded at runtime, not link time, to deal with
154 * references from .rodata
162 #if defined(CONFIG_BLK_DEV_INITRD)
163 . = ALIGN(_PAGE_SIZE);
165 __initramfs_start = .;
171 . = ALIGN(_PAGE_SIZE);
173 /* freed after init ends here */
175 __bss_start = .; /* BSS */
188 /* Sections to be discarded */
192 /* ABI crap starts here */
199 /* These mark the ABI of the kernel for debuggers. */
201 KEEP(*(.mdebug.abi32))
204 KEEP(*(.mdebug.abi64))
207 /* This is the MIPS specific mdebug section. */
215 /* These must appear regardless of . */