1/* $FreeBSD$ */ 2OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") 3OUTPUT_ARCH(arm) 4ENTRY(_start) 5 6SEARCH_DIR(/usr/lib); 7SECTIONS 8{ 9 /* Read-only sections, merged into text segment: */ 10 . = 0xc0000000 + SIZEOF_HEADERS; 11 .interp : { *(.interp) } 12 .hash : { *(.hash) } 13 .dynsym : { *(.dynsym) } 14 .dynstr : { *(.dynstr) } 15 .gnu.version : { *(.gnu.version) } 16 .gnu.version_d : { *(.gnu.version_d) } 17 .gnu.version_r : { *(.gnu.version_r) } 18 .rel.text : 19 { *(.rel.text) *(.rel.gnu.linkonce.t*) } 20 .rela.text : 21 { *(.rela.text) *(.rela.gnu.linkonce.t*) } 22 .rel.data : 23 { *(.rel.data) *(.rel.gnu.linkonce.d*) } 24 .rela.data : 25 { *(.rela.data) *(.rela.gnu.linkonce.d*) } 26 .rel.rodata : 27 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 28 .rela.rodata : 29 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 30 .rel.got : { *(.rel.got) } 31 .rela.got : { *(.rela.got) } 32 .rel.ctors : { *(.rel.ctors) } 33 .rela.ctors : { *(.rela.ctors) } 34 .rel.dtors : { *(.rel.dtors) } 35 .rela.dtors : { *(.rela.dtors) } 36 .rel.init : { *(.rel.init) } 37 .rela.init : { *(.rela.init) } 38 .rel.fini : { *(.rel.fini) } 39 .rela.fini : { *(.rela.fini) } 40 .rel.bss : { *(.rel.bss) } 41 .rela.bss : { *(.rela.bss) } 42 .rel.plt : { *(.rel.plt) } 43 .rela.plt : { *(.rela.plt) } 44 .init : { *(.init) } =0x9090 45 .plt : { *(.plt) } 46 .text : 47 { 48 *(.text) 49 *(.stub) 50 /* .gnu.warning sections are handled specially by elf32.em. */ 51 *(.gnu.warning) 52 *(.gnu.linkonce.t*) 53 } =0x9090 54 _etext = .; 55 PROVIDE (etext = .); 56 .fini : { *(.fini) } =0x9090 57 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 58 .rodata1 : { *(.rodata1) } 59 /* Adjust the address for the data segment. We want to adjust up to 60 the same address within the page on the next page up. */ 61 . = ALIGN(0x1000) + (. & (0x1000 - 1)) ; 62 .data : 63 { 64 *(.data) 65 *(.gnu.linkonce.d*) 66 CONSTRUCTORS 67 } 68 .data1 : { *(.data1) } 69 . = ALIGN(32 / 8); 70 _start_ctors = .; 71 PROVIDE (start_ctors = .); 72 .ctors : 73 { 74 *(.ctors) 75 } 76 _stop_ctors = .; 77 PROVIDE (stop_ctors = .); 78 .dtors : 79 { 80 *(.dtors) 81 } 82 .got : { *(.got.plt) *(.got) } 83 .dynamic : { *(.dynamic) } 84 /* We want the small data sections together, so single-instruction offsets 85 can access them all, and initialized data all before uninitialized, so 86 we can shorten the on-disk segment size. */ 87 .sdata : { *(.sdata) } 88 _edata = .; 89 PROVIDE (edata = .); 90 __bss_start = .; 91 .sbss : { *(.sbss) *(.scommon) } 92 .bss : 93 { 94 *(.dynbss) 95 *(.bss) 96 *(COMMON) 97 } 98 . = ALIGN(32 / 8); 99 _end = . ; 100 PROVIDE (end = .); 101 /* Stabs debugging sections. */ 102 .stab 0 : { *(.stab) } 103 .stabstr 0 : { *(.stabstr) } 104 .stab.excl 0 : { *(.stab.excl) } 105 .stab.exclstr 0 : { *(.stab.exclstr) } 106 .stab.index 0 : { *(.stab.index) } 107 .stab.indexstr 0 : { *(.stab.indexstr) } 108 .comment 0 : { *(.comment) } 109 /* DWARF debug sections. 110 Symbols in the DWARF debugging sections are relative to the beginning 111 of the section so we begin them at 0. */ 112 /* DWARF 1 */ 113 .debug 0 : { *(.debug) } 114 .line 0 : { *(.line) } 115 /* GNU DWARF 1 extensions */ 116 .debug_srcinfo 0 : { *(.debug_srcinfo) } 117 .debug_sfnames 0 : { *(.debug_sfnames) } 118 /* DWARF 1.1 and DWARF 2 */ 119 .debug_aranges 0 : { *(.debug_aranges) } 120 .debug_pubnames 0 : { *(.debug_pubnames) } 121 /* DWARF 2 */ 122 .debug_info 0 : { *(.debug_info) } 123 .debug_abbrev 0 : { *(.debug_abbrev) } 124 .debug_line 0 : { *(.debug_line) } 125 .debug_frame 0 : { *(.debug_frame) } 126 .debug_str 0 : { *(.debug_str) } 127 .debug_loc 0 : { *(.debug_loc) } 128 .debug_macinfo 0 : { *(.debug_macinfo) } 129 /* SGI/MIPS DWARF 2 extensions */ 130 .debug_weaknames 0 : { *(.debug_weaknames) } 131 .debug_funcnames 0 : { *(.debug_funcnames) } 132 .debug_typenames 0 : { *(.debug_typenames) } 133 .debug_varnames 0 : { *(.debug_varnames) } 134 /* These must appear regardless of . */ 135} 136