1 #include <asm/asm-offsets.h>
3 #include <asm/thread_info.h>
4 #include <asm-generic/vmlinux.lds.h>
11 text PT_LOAD FLAGS(7); /* RWX */
12 note PT_NOTE FLAGS(4); /* R__ */
16 #ifdef CONFIG_CPU_LITTLE_ENDIAN
19 jiffies = jiffies_64 + 4;
27 #ifdef CONFIG_BOOT_ELF64
28 /* Read-only sections, merged into text segment: */
29 /* . = 0xc000000000000000; */
31 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
32 /* . = 0xc00000000001c000; */
34 /* Set the vaddr for the text segment to a value
35 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
36 * >= 0xa800 0000 0030 0000 otherwise
39 /* . = 0xa800000000300000; */
40 . = 0xffffffff80300000;
42 . = VMLINUX_LOAD_ADDRESS;
44 _text = .; /* Text and read-only data */
55 _etext = .; /* End of text section */
59 /* Exception table for data bus errors */
61 __start___dbe_table = .;
63 __stop___dbe_table = .;
67 .dummy : { *(.dummy) } :text
69 _sdata = .; /* Start of data section */
74 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
76 INIT_TASK_DATA(THREAD_SIZE)
78 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
79 READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
90 /* We want the small data sections together, so single-instruction offsets
91 can access them all, and initialized data all before uninitialized, so
92 we can shorten the on-disk segment size. */
96 _edata = .; /* End of data section */
98 /* will be freed after init */
99 . = ALIGN(PAGE_SIZE); /* Init code and data */
101 INIT_TEXT_SECTION(PAGE_SIZE)
102 INIT_DATA_SECTION(16)
105 .mips.machines.init : AT(ADDR(.mips.machines.init) - LOAD_OFFSET) {
106 __mips_machines_start = .;
107 *(.mips.machines.init)
108 __mips_machines_end = .;
111 /* .exit.text is discarded at runtime, not link time, to deal with
112 * references from .rodata
121 PERCPU_SECTION(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
122 . = ALIGN(PAGE_SIZE);
124 /* freed after init ends here */
130 /* These mark the ABI of the kernel for debuggers. */
132 KEEP(*(.mdebug.abi32))
135 KEEP(*(.mdebug.abi64))
138 /* This is the MIPS specific mdebug section. */
146 /* These must appear regardless of . */
156 /* Sections to be discarded */
159 /* ABI crap starts here */