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