1OUTPUT_FORMAT("elf64-tradlittlemips", "elf64-tradbigmips", "elf64-tradlittlemips") 2OUTPUT_ARCH(mips) 3ENTRY(_start) 4SECTIONS 5{ 6 .text 0x0 : { 7 _text = .; 8 *(.text.head) 9 *(.text) 10 *(.text.*) 11 *(.gnu.linkonce.t.*) 12 *(.srodata) 13 *(.rodata*) 14 . = ALIGN(16); 15 } 16 _etext = .; 17 _text_size = . - _text; 18 . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); 19 .dynamic : { *(.dynamic) } 20 .data : 21 { 22 _data = .; 23 *(.sdata) 24 *(.data) 25 *(.data1) 26 *(.data.*) 27 *(.got.plt) 28 HIDDEN (_gp = ALIGN (16) + 0x7ff0); 29 *(.got) 30 31 /* the EFI loader doesn't seem to like a .bss section, so we stick 32 it all into .data: */ 33 . = ALIGN(16); 34 _bss = .; 35 *(.sbss) 36 *(.scommon) 37 *(.dynbss) 38 *(.bss*) 39 *(COMMON) 40 . = ALIGN(16); 41 _bss_end = .; 42 } 43 44 .rel : 45 { 46 *(.rel.text*) 47 *(.rel.data*) 48 *(.rel.got) 49 *(.rel.dyn) 50 *(.rel.stab) 51 } 52 . = ALIGN(4096); 53 .rel.plt : { *(.rel.plt) } 54 _edata = .; 55 _data_size = . - _etext; 56 57 . = ALIGN(4096); 58 .dynsym : { *(.dynsym) } 59 . = ALIGN(4096); 60 .dynstr : { *(.dynstr) } 61 . = ALIGN(4096); 62 .note.gnu.build-id : { *(.note.gnu.build-id) } 63 . = DATA_SEGMENT_END (.); 64 /DISCARD/ : 65 { 66 *(.rel.reloc) 67 *(.eh_frame) 68 *(.MIPS.abiflags) 69 *(.note.GNU-stack) 70 } 71 .comment 0 : { *(.comment) } 72} 73