1 #include <asm/asm-offsets.h>
2 #include <asm-generic/vmlinux.lds.h>
12 #ifdef CONFIG_BOOT_ELF64
13 /* Read-only sections, merged into text segment: */
14 /* . = 0xc000000000000000; */
16 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
17 /* . = 0xc00000000001c000; */
19 /* Set the vaddr for the text segment to a value
20 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
21 * >= 0xa800 0000 0030 0000 otherwise
24 /* . = 0xa800000000300000; */
25 . = 0xffffffff80300000;
29 _text = .; /* Text and read-only data */
37 _etext = .; /* End of text section */
42 __start___ex_table = .;
44 __stop___ex_table = .;
47 /* Exception table for data bus errors */
49 __start___dbe_table = .;
51 __stop___dbe_table = .;
57 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
59 * This ALIGN is needed as a workaround for a bug a gcc bug upto 4.1 which
60 * limits the maximum alignment to at most 32kB and results in the following
63 * CC arch/mips/kernel/init_task.o
64 * arch/mips/kernel/init_task.c:30: warning: alignment of ‘init_thread_union’
65 * is greater than maximum object file alignment. Using 32768
67 . = ALIGN(_PAGE_SIZE);
80 /* We want the small data sections together, so single-instruction offsets
81 can access them all, and initialized data all before uninitialized, so
82 we can shorten the on-disk segment size. */
87 . = ALIGN(_PAGE_SIZE);
92 . = ALIGN(_PAGE_SIZE);
96 .data.cacheline_aligned : {
97 *(.data.cacheline_aligned)
99 _edata = .; /* End of data section */
101 /* will be freed after init */
102 . = ALIGN(_PAGE_SIZE); /* Init code and data */
120 __initcall_start = .;
125 .con_initcall.init : {
126 __con_initcall_start = .;
127 *(.con_initcall.init)
128 __con_initcall_end = .;
132 /* .exit.text is discarded at runtime, not link time, to deal with
133 * references from .rodata
141 #if defined(CONFIG_BLK_DEV_INITRD)
142 . = ALIGN(_PAGE_SIZE);
144 __initramfs_start = .;
150 . = ALIGN(_PAGE_SIZE);
152 /* freed after init ends here */
154 __bss_start = .; /* BSS */
167 /* Sections to be discarded */
171 /* ABI crap starts here */
178 /* These mark the ABI of the kernel for debuggers. */
180 KEEP(*(.mdebug.abi32))
183 KEEP(*(.mdebug.abi64))
186 /* This is the MIPS specific mdebug section. */
194 /* These must appear regardless of . */