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__ */
16 #ifdef CONFIG_BOOT_ELF64
17 /* Read-only sections, merged into text segment: */
18 /* . = 0xc000000000000000; */
20 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
21 /* . = 0xc00000000001c000; */
23 /* Set the vaddr for the text segment to a value
24 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
25 * >= 0xa800 0000 0030 0000 otherwise
28 /* . = 0xa800000000300000; */
29 . = 0xffffffff80300000;
33 _text = .; /* Text and read-only data */
43 _etext = .; /* End of text section */
48 __start___ex_table = .;
50 __stop___ex_table = .;
53 /* Exception table for data bus errors */
55 __start___dbe_table = .;
57 __stop___dbe_table = .;
61 .dummy : { *(.dummy) } :text
67 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
69 * This ALIGN is needed as a workaround for a bug a
70 * gcc bug upto 4.1 which limits the maximum alignment
71 * to at most 32kB and results in the following
74 * CC arch/mips/kernel/init_task.o
75 * arch/mips/kernel/init_task.c:30: warning: alignment
76 * of ‘init_thread_union’ is greater than maximum
77 * object file alignment. Using 32768
79 . = ALIGN(_PAGE_SIZE);
92 /* We want the small data sections together, so single-instruction offsets
93 can access them all, and initialized data all before uninitialized, so
94 we can shorten the on-disk segment size. */
99 . = ALIGN(_PAGE_SIZE);
104 . = ALIGN(_PAGE_SIZE);
108 .data.cacheline_aligned : {
109 *(.data.cacheline_aligned)
111 _edata = .; /* End of data section */
113 /* will be freed after init */
114 . = ALIGN(_PAGE_SIZE); /* Init code and data */
132 __initcall_start = .;
137 .con_initcall.init : {
138 __con_initcall_start = .;
139 *(.con_initcall.init)
140 __con_initcall_end = .;
144 /* .exit.text is discarded at runtime, not link time, to deal with
145 * references from .rodata
153 #if defined(CONFIG_BLK_DEV_INITRD)
154 . = ALIGN(_PAGE_SIZE);
156 __initramfs_start = .;
162 . = ALIGN(_PAGE_SIZE);
164 /* freed after init ends here */
166 __bss_start = .; /* BSS */
179 /* Sections to be discarded */
183 /* ABI crap starts here */
190 /* These mark the ABI of the kernel for debuggers. */
192 KEEP(*(.mdebug.abi32))
195 KEEP(*(.mdebug.abi64))
198 /* This is the MIPS specific mdebug section. */
206 /* These must appear regardless of . */