1 #include <linux/config.h>
2 #include <asm-generic/vmlinux.lds.h>
4 #undef mips /* CPP really sucks for this job */
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 = .;
52 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
62 /* We want the small data sections together, so single-instruction offsets
63 can access them all, and initialized data all before uninitialized, so
64 we can shorten the on-disk segment size. */
65 .sdata : { *(.sdata) }
69 .data_nosave : { *(.data.nosave) }
74 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
76 _edata = .; /* End of data section */
78 /* will be freed after init */
79 . = ALIGN(4096); /* Init code and data */
86 .init.data : { *(.init.data) }
89 .init.setup : { *(.init.setup) }
104 __con_initcall_start = .;
105 .con_initcall.init : { *(.con_initcall.init) }
106 __con_initcall_end = .;
109 __initramfs_start = .;
110 .init.ramfs : { *(.init.ramfs) }
114 .data.percpu : { *(.data.percpu) }
118 /* freed after init ends here */
120 __bss_start = .; /* BSS */
133 /* Sections to be discarded */
139 /* ABI crap starts here */
149 /* This is the MIPS specific mdebug section. */
150 .mdebug : { *(.mdebug) }
151 /* These are needed for ELF backends which have not yet been
152 converted to the new style linker. */
153 .stab 0 : { *(.stab) }
154 .stabstr 0 : { *(.stabstr) }
155 /* DWARF debug sections.
156 Symbols in the .debug DWARF section are relative to the beginning of the
157 section so we begin .debug at 0. It's not clear yet what needs to happen
159 .debug 0 : { *(.debug) }
160 .debug_srcinfo 0 : { *(.debug_srcinfo) }
161 .debug_aranges 0 : { *(.debug_aranges) }
162 .debug_pubnames 0 : { *(.debug_pubnames) }
163 .debug_sfnames 0 : { *(.debug_sfnames) }
164 .line 0 : { *(.line) }
165 /* These must appear regardless of . */
166 .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
167 .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
168 .comment : { *(.comment) }