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 /* . = 0xa800000000300000; */
26 . = 0xffffffff80300000;
30 _text = .; /* Text and read-only data */
38 _etext = .; /* End of text section */
43 __start___ex_table = .;
45 __stop___ex_table = .;
48 /* Exception table for data bus errors */
50 __start___dbe_table = .;
52 __stop___dbe_table = .;
58 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
60 * This ALIGN is needed as a workaround for a bug a gcc bug upto 4.1 which
61 * limits the maximum alignment to at most 32kB and results in the following
64 * CC arch/mips/kernel/init_task.o
65 * arch/mips/kernel/init_task.c:30: warning: alignment of ‘init_thread_union’
66 * is greater than maximum object file alignment. Using 32768
68 . = ALIGN(_PAGE_SIZE);
81 /* We want the small data sections together, so single-instruction offsets
82 can access them all, and initialized data all before uninitialized, so
83 we can shorten the on-disk segment size. */
88 . = ALIGN(_PAGE_SIZE);
93 . = ALIGN(_PAGE_SIZE);
97 .data.cacheline_aligned : {
98 *(.data.cacheline_aligned)
100 _edata = .; /* End of data section */
102 /* will be freed after init */
103 . = ALIGN(_PAGE_SIZE); /* Init code and data */
121 __initcall_start = .;
126 .con_initcall.init : {
127 __con_initcall_start = .;
128 *(.con_initcall.init)
129 __con_initcall_end = .;
133 /* .exit.text is discarded at runtime, not link time, to deal with
134 * references from .rodata
142 #if defined(CONFIG_BLK_DEV_INITRD)
143 . = ALIGN(_PAGE_SIZE);
145 __initramfs_start = .;
151 . = ALIGN(_PAGE_SIZE);
153 /* freed after init ends here */
155 __bss_start = .; /* BSS */
168 /* Sections to be discarded */
172 /* ABI crap starts here */
179 /* These mark the ABI of the kernel for debuggers. */
181 KEEP(*(.mdebug.abi32))
184 KEEP(*(.mdebug.abi64))
187 /* This is the MIPS specific mdebug section. */
195 /* These must appear regardless of . */