1OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") 2OUTPUT_ARCH(arm) 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 *(.got) 29 30 /* the EFI loader doesn't seem to like a .bss section, so we stick 31 it all into .data: */ 32 . = ALIGN(16); 33 _bss = .; 34 *(.sbss) 35 *(.scommon) 36 *(.dynbss) 37 *(.bss) 38 *(.bss.*) 39 *(COMMON) 40 . = ALIGN(16); 41 _bss_end = .; 42 } 43 44 .rel.dyn : { *(.rel.dyn) } 45 .rel.plt : { *(.rel.plt) } 46 .rel.got : { *(.rel.got) } 47 .rel.data : { *(.rel.data) *(.rel.data*) } 48 _edata = .; 49 _data_size = . - _etext; 50 51 . = ALIGN(4096); 52 .dynsym : { *(.dynsym) } 53 . = ALIGN(4096); 54 .dynstr : { *(.dynstr) } 55 . = ALIGN(4096); 56 .note.gnu.build-id : { *(.note.gnu.build-id) } 57 . = DATA_SEGMENT_END (.); 58 /DISCARD/ : 59 { 60 *(.rel.reloc) 61 *(.eh_frame) 62 *(.note.GNU-stack) 63 } 64 .comment 0 : { *(.comment) } 65} 66