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__ */
17 #ifdef CONFIG_BOOT_ELF64
18 /* Read-only sections, merged into text segment: */
19 /* . = 0xc000000000000000; */
21 /* This is the value for an Origin kernel, taken from an IRIX kernel. */
22 /* . = 0xc00000000001c000; */
24 /* Set the vaddr for the text segment to a value
25 * >= 0xa800 0000 0001 9000 if no symmon is going to configured
26 * >= 0xa800 0000 0030 0000 otherwise
29 /* . = 0xa800000000300000; */
30 . = 0xffffffff80300000;
34 _text = .; /* Text and read-only data */
44 _etext = .; /* End of text section */
48 /* Exception table for data bus errors */
50 __start___dbe_table = .;
52 __stop___dbe_table = .;
56 .dummy : { *(.dummy) } :text
62 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
64 INIT_TASK_DATA(PAGE_SIZE)
66 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
77 /* We want the small data sections together, so single-instruction offsets
78 can access them all, and initialized data all before uninitialized, so
79 we can shorten the on-disk segment size. */
83 _edata = .; /* End of data section */
85 /* will be freed after init */
86 . = ALIGN(PAGE_SIZE); /* Init code and data */
88 INIT_TEXT_SECTION(PAGE_SIZE)
91 /* .exit.text is discarded at runtime, not link time, to deal with
92 * references from .rodata
102 . = ALIGN(PAGE_SIZE);
104 /* freed after init ends here */
110 /* These mark the ABI of the kernel for debuggers. */
112 KEEP(*(.mdebug.abi32))
115 KEEP(*(.mdebug.abi64))
118 /* This is the MIPS specific mdebug section. */
126 /* These must appear regardless of . */
136 /* Sections to be discarded */
139 /* ABI crap starts here */