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 gcc bug upto 4.1 which
69 * limits the maximum alignment to at most 32kB and results in the following
72 * CC arch/mips/kernel/init_task.o
73 * arch/mips/kernel/init_task.c:30: warning: alignment of ‘init_thread_union’
74 * is greater than maximum object file alignment. Using 32768
76 . = ALIGN(_PAGE_SIZE);
89 /* We want the small data sections together, so single-instruction offsets
90 can access them all, and initialized data all before uninitialized, so
91 we can shorten the on-disk segment size. */
96 . = ALIGN(_PAGE_SIZE);
101 . = ALIGN(_PAGE_SIZE);
105 .data.cacheline_aligned : {
106 *(.data.cacheline_aligned)
108 _edata = .; /* End of data section */
110 /* will be freed after init */
111 . = ALIGN(_PAGE_SIZE); /* Init code and data */
129 __initcall_start = .;
134 .con_initcall.init : {
135 __con_initcall_start = .;
136 *(.con_initcall.init)
137 __con_initcall_end = .;
141 /* .exit.text is discarded at runtime, not link time, to deal with
142 * references from .rodata
150 #if defined(CONFIG_BLK_DEV_INITRD)
151 . = ALIGN(_PAGE_SIZE);
153 __initramfs_start = .;
159 . = ALIGN(_PAGE_SIZE);
161 /* freed after init ends here */
163 __bss_start = .; /* BSS */
176 /* Sections to be discarded */
180 /* ABI crap starts here */
187 /* These mark the ABI of the kernel for debuggers. */
189 KEEP(*(.mdebug.abi32))
192 KEEP(*(.mdebug.abi64))
195 /* This is the MIPS specific mdebug section. */
203 /* These must appear regardless of . */