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 */
41 _etext = .; /* End of text section */
46 __start___ex_table = .;
48 __stop___ex_table = .;
51 /* Exception table for data bus errors */
53 __start___dbe_table = .;
55 __stop___dbe_table = .;
59 .dummy : { *(.dummy) } :text
65 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
67 * This ALIGN is needed as a workaround for a bug a gcc bug upto 4.1 which
68 * limits the maximum alignment to at most 32kB and results in the following
71 * CC arch/mips/kernel/init_task.o
72 * arch/mips/kernel/init_task.c:30: warning: alignment of ‘init_thread_union’
73 * is greater than maximum object file alignment. Using 32768
75 . = ALIGN(_PAGE_SIZE);
88 /* We want the small data sections together, so single-instruction offsets
89 can access them all, and initialized data all before uninitialized, so
90 we can shorten the on-disk segment size. */
95 . = ALIGN(_PAGE_SIZE);
100 . = ALIGN(_PAGE_SIZE);
104 .data.cacheline_aligned : {
105 *(.data.cacheline_aligned)
107 _edata = .; /* End of data section */
109 /* will be freed after init */
110 . = ALIGN(_PAGE_SIZE); /* Init code and data */
128 __initcall_start = .;
133 .con_initcall.init : {
134 __con_initcall_start = .;
135 *(.con_initcall.init)
136 __con_initcall_end = .;
140 /* .exit.text is discarded at runtime, not link time, to deal with
141 * references from .rodata
149 #if defined(CONFIG_BLK_DEV_INITRD)
150 . = ALIGN(_PAGE_SIZE);
152 __initramfs_start = .;
158 . = ALIGN(_PAGE_SIZE);
160 /* freed after init ends here */
162 __bss_start = .; /* BSS */
175 /* Sections to be discarded */
179 /* ABI crap starts here */
186 /* These mark the ABI of the kernel for debuggers. */
188 KEEP(*(.mdebug.abi32))
191 KEEP(*(.mdebug.abi64))
194 /* This is the MIPS specific mdebug section. */
202 /* These must appear regardless of . */