1 #include <asm/asm-offsets.h>
3 #include <asm-generic/vmlinux.lds.h>
10 text PT_LOAD FLAGS(7); /* RWX */
11 note PT_NOTE FLAGS(4); /* R__ */
15 #ifdef CONFIG_CPU_LITTLE_ENDIAN
18 jiffies = jiffies_64 + 4;
26 #ifdef CONFIG_BOOT_ELF64
27 /* Read-only sections, merged into text segment: */
28 /* . = 0xc000000000000000; */
30 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
31 /* . = 0xc00000000001c000; */
33 /* Set the vaddr for the text segment to a value
34 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
35 * >= 0xa800 0000 0030 0000 otherwise
38 /* . = 0xa800000000300000; */
39 . = 0xffffffff80300000;
41 . = VMLINUX_LOAD_ADDRESS;
43 _text = .; /* Text and read-only data */
54 _etext = .; /* End of text section */
58 /* Exception table for data bus errors */
60 __start___dbe_table = .;
62 __stop___dbe_table = .;
66 .dummy : { *(.dummy) } :text
71 _sdata = .; /* Start of data section */
73 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
75 INIT_TASK_DATA(PAGE_SIZE)
77 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
78 READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
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. */
95 _edata = .; /* End of data section */
97 /* will be freed after init */
98 . = ALIGN(PAGE_SIZE); /* Init code and data */
100 INIT_TEXT_SECTION(PAGE_SIZE)
101 INIT_DATA_SECTION(16)
104 .mips.machines.init : AT(ADDR(.mips.machines.init) - LOAD_OFFSET) {
105 __mips_machines_start = .;
106 *(.mips.machines.init)
107 __mips_machines_end = .;
110 /* .exit.text is discarded at runtime, not link time, to deal with
111 * references from .rodata
120 PERCPU(1 << CONFIG_MIPS_L1_CACHE_SHIFT, PAGE_SIZE)
121 . = ALIGN(PAGE_SIZE);
123 /* freed after init ends here */
129 /* These mark the ABI of the kernel for debuggers. */
131 KEEP(*(.mdebug.abi32))
134 KEEP(*(.mdebug.abi64))
137 /* This is the MIPS specific mdebug section. */
145 /* These must appear regardless of . */
155 /* Sections to be discarded */
158 /* ABI crap starts here */