OUTPUT_FORMAT("elf64-tradlittlemips") OUTPUT_ARCH(mips) ENTRY(__start) SECTIONS { /* * Load at 30MB; should be more than enough to be able to load the * kernel image without overwriting ourselves. */ . = 0xffffffff81e20000 + SIZEOF_HEADERS; .text : { *(.text .text.* .gnu.linkonce.t.*) } PROVIDE (etext = .); .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } .data : { *(.data .data.* .gnu.linkonce.d.*) } PROVIDE (edata = .); .sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.* .scommon) } .bss : { *(.bss .bss.* .gnu.linkonce.b.* COMMON) } PROVIDE (_end = .); PROVIDE (end = .); /DISCARD/ : { *(.pdr) *(.mdebug.abi64) *(.MIPS.options) } }