ldscript.arm revision 129199
1129199Scognet/* $FreeBSD: head/sys/conf/ldscript.arm 129199 2004-05-14 11:49:40Z cognet $ */ 2129199ScognetOUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") 3129199ScognetOUTPUT_ARCH(arm) 4129199ScognetENTRY(_start) 5129199Scognet 6129199ScognetSEARCH_DIR(/usr/lib); 7129199ScognetSECTIONS 8129199Scognet{ 9129199Scognet /* Read-only sections, merged into text segment: */ 10129199Scognet . = 0xc0000000 + SIZEOF_HEADERS; 11129199Scognet .interp : { *(.interp) } 12129199Scognet .hash : { *(.hash) } 13129199Scognet .dynsym : { *(.dynsym) } 14129199Scognet .dynstr : { *(.dynstr) } 15129199Scognet .gnu.version : { *(.gnu.version) } 16129199Scognet .gnu.version_d : { *(.gnu.version_d) } 17129199Scognet .gnu.version_r : { *(.gnu.version_r) } 18129199Scognet .rel.text : 19129199Scognet { *(.rel.text) *(.rel.gnu.linkonce.t*) } 20129199Scognet .rela.text : 21129199Scognet { *(.rela.text) *(.rela.gnu.linkonce.t*) } 22129199Scognet .rel.data : 23129199Scognet { *(.rel.data) *(.rel.gnu.linkonce.d*) } 24129199Scognet .rela.data : 25129199Scognet { *(.rela.data) *(.rela.gnu.linkonce.d*) } 26129199Scognet .rel.rodata : 27129199Scognet { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 28129199Scognet .rela.rodata : 29129199Scognet { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 30129199Scognet .rel.got : { *(.rel.got) } 31129199Scognet .rela.got : { *(.rela.got) } 32129199Scognet .rel.ctors : { *(.rel.ctors) } 33129199Scognet .rela.ctors : { *(.rela.ctors) } 34129199Scognet .rel.dtors : { *(.rel.dtors) } 35129199Scognet .rela.dtors : { *(.rela.dtors) } 36129199Scognet .rel.init : { *(.rel.init) } 37129199Scognet .rela.init : { *(.rela.init) } 38129199Scognet .rel.fini : { *(.rel.fini) } 39129199Scognet .rela.fini : { *(.rela.fini) } 40129199Scognet .rel.bss : { *(.rel.bss) } 41129199Scognet .rela.bss : { *(.rela.bss) } 42129199Scognet .rel.plt : { *(.rel.plt) } 43129199Scognet .rela.plt : { *(.rela.plt) } 44129199Scognet .init : { *(.init) } =0x9090 45129199Scognet .plt : { *(.plt) } 46129199Scognet .text : 47129199Scognet { 48129199Scognet *(.text) 49129199Scognet *(.stub) 50129199Scognet /* .gnu.warning sections are handled specially by elf32.em. */ 51129199Scognet *(.gnu.warning) 52129199Scognet *(.gnu.linkonce.t*) 53129199Scognet } =0x9090 54129199Scognet _etext = .; 55129199Scognet PROVIDE (etext = .); 56129199Scognet .fini : { *(.fini) } =0x9090 57129199Scognet .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 58129199Scognet .rodata1 : { *(.rodata1) } 59129199Scognet /* Adjust the address for the data segment. We want to adjust up to 60129199Scognet the same address within the page on the next page up. */ 61129199Scognet . = ALIGN(0x1000) + (. & (0x1000 - 1)) ; 62129199Scognet .data : 63129199Scognet { 64129199Scognet *(.data) 65129199Scognet *(.gnu.linkonce.d*) 66129199Scognet CONSTRUCTORS 67129199Scognet } 68129199Scognet .data1 : { *(.data1) } 69129199Scognet . = ALIGN(32 / 8); 70129199Scognet _start_ctors = .; 71129199Scognet PROVIDE (start_ctors = .); 72129199Scognet .ctors : 73129199Scognet { 74129199Scognet *(.ctors) 75129199Scognet } 76129199Scognet _stop_ctors = .; 77129199Scognet PROVIDE (stop_ctors = .); 78129199Scognet .dtors : 79129199Scognet { 80129199Scognet *(.dtors) 81129199Scognet } 82129199Scognet .got : { *(.got.plt) *(.got) } 83129199Scognet .dynamic : { *(.dynamic) } 84129199Scognet /* We want the small data sections together, so single-instruction offsets 85129199Scognet can access them all, and initialized data all before uninitialized, so 86129199Scognet we can shorten the on-disk segment size. */ 87129199Scognet .sdata : { *(.sdata) } 88129199Scognet _edata = .; 89129199Scognet PROVIDE (edata = .); 90129199Scognet __bss_start = .; 91129199Scognet .sbss : { *(.sbss) *(.scommon) } 92129199Scognet .bss : 93129199Scognet { 94129199Scognet *(.dynbss) 95129199Scognet *(.bss) 96129199Scognet *(COMMON) 97129199Scognet } 98129199Scognet . = ALIGN(32 / 8); 99129199Scognet _end = . ; 100129199Scognet PROVIDE (end = .); 101129199Scognet /* Stabs debugging sections. */ 102129199Scognet .stab 0 : { *(.stab) } 103129199Scognet .stabstr 0 : { *(.stabstr) } 104129199Scognet .stab.excl 0 : { *(.stab.excl) } 105129199Scognet .stab.exclstr 0 : { *(.stab.exclstr) } 106129199Scognet .stab.index 0 : { *(.stab.index) } 107129199Scognet .stab.indexstr 0 : { *(.stab.indexstr) } 108129199Scognet .comment 0 : { *(.comment) } 109129199Scognet /* DWARF debug sections. 110129199Scognet Symbols in the DWARF debugging sections are relative to the beginning 111129199Scognet of the section so we begin them at 0. */ 112129199Scognet /* DWARF 1 */ 113129199Scognet .debug 0 : { *(.debug) } 114129199Scognet .line 0 : { *(.line) } 115129199Scognet /* GNU DWARF 1 extensions */ 116129199Scognet .debug_srcinfo 0 : { *(.debug_srcinfo) } 117129199Scognet .debug_sfnames 0 : { *(.debug_sfnames) } 118129199Scognet /* DWARF 1.1 and DWARF 2 */ 119129199Scognet .debug_aranges 0 : { *(.debug_aranges) } 120129199Scognet .debug_pubnames 0 : { *(.debug_pubnames) } 121129199Scognet /* DWARF 2 */ 122129199Scognet .debug_info 0 : { *(.debug_info) } 123129199Scognet .debug_abbrev 0 : { *(.debug_abbrev) } 124129199Scognet .debug_line 0 : { *(.debug_line) } 125129199Scognet .debug_frame 0 : { *(.debug_frame) } 126129199Scognet .debug_str 0 : { *(.debug_str) } 127129199Scognet .debug_loc 0 : { *(.debug_loc) } 128129199Scognet .debug_macinfo 0 : { *(.debug_macinfo) } 129129199Scognet /* SGI/MIPS DWARF 2 extensions */ 130129199Scognet .debug_weaknames 0 : { *(.debug_weaknames) } 131129199Scognet .debug_funcnames 0 : { *(.debug_funcnames) } 132129199Scognet .debug_typenames 0 : { *(.debug_typenames) } 133129199Scognet .debug_varnames 0 : { *(.debug_varnames) } 134129199Scognet /* These must appear regardless of . */ 135129199Scognet} 136