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 */
42 _etext = .; /* End of text section */
47 __start___ex_table = .;
49 __stop___ex_table = .;
52 /* Exception table for data bus errors */
54 __start___dbe_table = .;
56 __stop___dbe_table = .;
60 .dummy : { *(.dummy) } :text
66 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
68 * This ALIGN is needed as a workaround for a bug a
69 * gcc bug upto 4.1 which limits the maximum alignment
70 * to at most 32kB and results in the following
73 * CC arch/mips/kernel/init_task.o
74 * arch/mips/kernel/init_task.c:30: warning: alignment
75 * of ‘init_thread_union’ is greater than maximum
76 * object file alignment. Using 32768
78 . = ALIGN(_PAGE_SIZE);
91 /* We want the small data sections together, so single-instruction offsets
92 can access them all, and initialized data all before uninitialized, so
93 we can shorten the on-disk segment size. */
98 . = ALIGN(_PAGE_SIZE);
103 . = ALIGN(_PAGE_SIZE);
107 .data.cacheline_aligned : {
108 *(.data.cacheline_aligned)
110 _edata = .; /* End of data section */
112 /* will be freed after init */
113 . = ALIGN(_PAGE_SIZE); /* Init code and data */
131 __initcall_start = .;
136 .con_initcall.init : {
137 __con_initcall_start = .;
138 *(.con_initcall.init)
139 __con_initcall_end = .;
143 /* .exit.text is discarded at runtime, not link time, to deal with
144 * references from .rodata
152 #if defined(CONFIG_BLK_DEV_INITRD)
153 . = ALIGN(_PAGE_SIZE);
155 __initramfs_start = .;
161 . = ALIGN(_PAGE_SIZE);
163 /* freed after init ends here */
165 __bss_start = .; /* BSS */
178 /* Sections to be discarded */
182 /* ABI crap starts here */
189 /* These mark the ABI of the kernel for debuggers. */
191 KEEP(*(.mdebug.abi32))
194 KEEP(*(.mdebug.abi64))
197 /* This is the MIPS specific mdebug section. */
205 /* These must appear regardless of . */