1 #include <asm/asm-offsets.h>
2 #include <asm-generic/vmlinux.lds.h>
11 #ifdef CONFIG_BOOT_ELF64
12 /* Read-only sections, merged into text segment: */
13 /* . = 0xc000000000000000; */
15 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
16 /* . = 0xc00000000001c000; */
18 /* Set the vaddr for the text segment to a value
19 >= 0xa800 0000 0001 9000 if no symmon is going to configured
20 >= 0xa800 0000 0030 0000 otherwise */
22 /* . = 0xa800000000300000; */
23 /* . = 0xa800000000300000; */
24 . = 0xffffffff80300000;
28 _text = .; /* Text and read-only data */
37 _etext = .; /* End of text section */
39 . = ALIGN(16); /* Exception table */
40 __start___ex_table = .;
41 __ex_table : { *(__ex_table) }
42 __stop___ex_table = .;
44 __start___dbe_table = .; /* Exception table for data bus errors */
45 __dbe_table : { *(__dbe_table) }
46 __stop___dbe_table = .;
54 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
56 * This ALIGN is needed as a workaround for a bug a gcc bug upto 4.1 which
57 * limits the maximum alignment to at most 32kB and results in the following
60 * CC arch/mips/kernel/init_task.o
61 * arch/mips/kernel/init_task.c:30: warning: alignment of ‘init_thread_union’
62 * is greater than maximum object file alignment. Using 32768
64 . = ALIGN(_PAGE_SIZE);
74 /* We want the small data sections together, so single-instruction offsets
75 can access them all, and initialized data all before uninitialized, so
76 we can shorten the on-disk segment size. */
77 .sdata : { *(.sdata) }
79 . = ALIGN(_PAGE_SIZE);
81 .data_nosave : { *(.data.nosave) }
82 . = ALIGN(_PAGE_SIZE);
86 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
88 _edata = .; /* End of data section */
90 /* will be freed after init */
91 . = ALIGN(_PAGE_SIZE); /* Init code and data */
98 .init.data : { *(.init.data) }
101 .init.setup : { *(.init.setup) }
104 __initcall_start = .;
110 __con_initcall_start = .;
111 .con_initcall.init : { *(.con_initcall.init) }
112 __con_initcall_end = .;
114 /* .exit.text is discarded at runtime, not link time, to deal with
115 references from .rodata */
116 .exit.text : { *(.exit.text) }
117 .exit.data : { *(.exit.data) }
118 #if defined(CONFIG_BLK_DEV_INITRD)
119 . = ALIGN(_PAGE_SIZE);
120 __initramfs_start = .;
121 .init.ramfs : { *(.init.ramfs) }
125 . = ALIGN(_PAGE_SIZE);
127 /* freed after init ends here */
129 __bss_start = .; /* BSS */
142 /* Sections to be discarded */
146 /* ABI crap starts here */
153 /* These mark the ABI of the kernel for debuggers. */
154 .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
155 .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
157 /* This is the MIPS specific mdebug section. */
158 .mdebug : { *(.mdebug) }
164 /* These must appear regardless of . */
165 .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
166 .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }