178b36e3cSOlivier Houchard/* $FreeBSD$ */ 278b36e3cSOlivier HouchardOUTPUT_ARCH(arm) 378b36e3cSOlivier HouchardENTRY(_start) 478b36e3cSOlivier Houchard 578b36e3cSOlivier HouchardSEARCH_DIR(/usr/lib); 678b36e3cSOlivier HouchardSECTIONS 778b36e3cSOlivier Houchard{ 878b36e3cSOlivier Houchard /* Read-only sections, merged into text segment: */ 9c60e48e2SOlivier Houchard . = KERNVIRTADDR + SIZEOF_HEADERS; 10f5a9ac9cSOlivier Houchard .text : 11f5a9ac9cSOlivier Houchard { 12f5a9ac9cSOlivier Houchard *(.text) 13f5a9ac9cSOlivier Houchard *(.stub) 14f5a9ac9cSOlivier Houchard /* .gnu.warning sections are handled specially by elf32.em. */ 15f5a9ac9cSOlivier Houchard *(.gnu.warning) 16f5a9ac9cSOlivier Houchard *(.gnu.linkonce.t*) 17f5a9ac9cSOlivier Houchard } =0x9090 18f5a9ac9cSOlivier Houchard _etext = .; 19f5a9ac9cSOlivier Houchard PROVIDE (etext = .); 20f5a9ac9cSOlivier Houchard .fini : { *(.fini) } =0x9090 21f5a9ac9cSOlivier Houchard .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 22f5a9ac9cSOlivier Houchard .rodata1 : { *(.rodata1) } 2378b36e3cSOlivier Houchard .interp : { *(.interp) } 2478b36e3cSOlivier Houchard .hash : { *(.hash) } 2578b36e3cSOlivier Houchard .dynsym : { *(.dynsym) } 2678b36e3cSOlivier Houchard .dynstr : { *(.dynstr) } 2778b36e3cSOlivier Houchard .gnu.version : { *(.gnu.version) } 2878b36e3cSOlivier Houchard .gnu.version_d : { *(.gnu.version_d) } 2978b36e3cSOlivier Houchard .gnu.version_r : { *(.gnu.version_r) } 3078b36e3cSOlivier Houchard .rel.text : 3178b36e3cSOlivier Houchard { *(.rel.text) *(.rel.gnu.linkonce.t*) } 3278b36e3cSOlivier Houchard .rela.text : 3378b36e3cSOlivier Houchard { *(.rela.text) *(.rela.gnu.linkonce.t*) } 3478b36e3cSOlivier Houchard .rel.data : 3578b36e3cSOlivier Houchard { *(.rel.data) *(.rel.gnu.linkonce.d*) } 3678b36e3cSOlivier Houchard .rela.data : 3778b36e3cSOlivier Houchard { *(.rela.data) *(.rela.gnu.linkonce.d*) } 3878b36e3cSOlivier Houchard .rel.rodata : 3978b36e3cSOlivier Houchard { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 4078b36e3cSOlivier Houchard .rela.rodata : 4178b36e3cSOlivier Houchard { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 4278b36e3cSOlivier Houchard .rel.got : { *(.rel.got) } 4378b36e3cSOlivier Houchard .rela.got : { *(.rela.got) } 4478b36e3cSOlivier Houchard .rel.ctors : { *(.rel.ctors) } 4578b36e3cSOlivier Houchard .rela.ctors : { *(.rela.ctors) } 4678b36e3cSOlivier Houchard .rel.dtors : { *(.rel.dtors) } 4778b36e3cSOlivier Houchard .rela.dtors : { *(.rela.dtors) } 4878b36e3cSOlivier Houchard .rel.init : { *(.rel.init) } 4978b36e3cSOlivier Houchard .rela.init : { *(.rela.init) } 5078b36e3cSOlivier Houchard .rel.fini : { *(.rel.fini) } 5178b36e3cSOlivier Houchard .rela.fini : { *(.rela.fini) } 5278b36e3cSOlivier Houchard .rel.bss : { *(.rel.bss) } 5378b36e3cSOlivier Houchard .rela.bss : { *(.rela.bss) } 5478b36e3cSOlivier Houchard .rel.plt : { *(.rel.plt) } 5578b36e3cSOlivier Houchard .rela.plt : { *(.rela.plt) } 5678b36e3cSOlivier Houchard .init : { *(.init) } =0x9090 5778b36e3cSOlivier Houchard .plt : { *(.plt) } 58f5a9ac9cSOlivier Houchard 5967727fbfSAndrew Turner . = ALIGN(4); 60b56c0c67SAndrew Turner _extab_start = .; 61b56c0c67SAndrew Turner PROVIDE(extab_start = .); 62b56c0c67SAndrew Turner .ARM.extab : { *(.ARM.extab) } 63b56c0c67SAndrew Turner _extab.end = .; 64b56c0c67SAndrew Turner PROVIDE(extab_end = .); 65b56c0c67SAndrew Turner 66b56c0c67SAndrew Turner _exidx_start = .; 67b56c0c67SAndrew Turner PROVIDE(exidx_start = .); 68b56c0c67SAndrew Turner .ARM.exidx : { *(.ARM.exidx) } 69b56c0c67SAndrew Turner _exidx_end = .; 70b56c0c67SAndrew Turner PROVIDE(exidx_end = .); 71b56c0c67SAndrew Turner 7278b36e3cSOlivier Houchard /* Adjust the address for the data segment. We want to adjust up to 7378b36e3cSOlivier Houchard the same address within the page on the next page up. */ 7478b36e3cSOlivier Houchard . = ALIGN(0x1000) + (. & (0x1000 - 1)) ; 7578b36e3cSOlivier Houchard .data : 7678b36e3cSOlivier Houchard { 7778b36e3cSOlivier Houchard *(.data) 7878b36e3cSOlivier Houchard *(.gnu.linkonce.d*) 7978b36e3cSOlivier Houchard CONSTRUCTORS 8078b36e3cSOlivier Houchard } 8178b36e3cSOlivier Houchard .data1 : { *(.data1) } 8278b36e3cSOlivier Houchard . = ALIGN(32 / 8); 8378b36e3cSOlivier Houchard _start_ctors = .; 8478b36e3cSOlivier Houchard PROVIDE (start_ctors = .); 8578b36e3cSOlivier Houchard .ctors : 8678b36e3cSOlivier Houchard { 8778b36e3cSOlivier Houchard *(.ctors) 8878b36e3cSOlivier Houchard } 8978b36e3cSOlivier Houchard _stop_ctors = .; 9078b36e3cSOlivier Houchard PROVIDE (stop_ctors = .); 9178b36e3cSOlivier Houchard .dtors : 9278b36e3cSOlivier Houchard { 9378b36e3cSOlivier Houchard *(.dtors) 9478b36e3cSOlivier Houchard } 9578b36e3cSOlivier Houchard .got : { *(.got.plt) *(.got) } 9678b36e3cSOlivier Houchard .dynamic : { *(.dynamic) } 9778b36e3cSOlivier Houchard /* We want the small data sections together, so single-instruction offsets 9878b36e3cSOlivier Houchard can access them all, and initialized data all before uninitialized, so 9978b36e3cSOlivier Houchard we can shorten the on-disk segment size. */ 10078b36e3cSOlivier Houchard .sdata : { *(.sdata) } 10178b36e3cSOlivier Houchard _edata = .; 10278b36e3cSOlivier Houchard PROVIDE (edata = .); 10378b36e3cSOlivier Houchard __bss_start = .; 10478b36e3cSOlivier Houchard .sbss : { *(.sbss) *(.scommon) } 10578b36e3cSOlivier Houchard .bss : 10678b36e3cSOlivier Houchard { 10778b36e3cSOlivier Houchard *(.dynbss) 10878b36e3cSOlivier Houchard *(.bss) 10978b36e3cSOlivier Houchard *(COMMON) 110*979d76c9SAndrew Turner . = ALIGN(32 / 8); 111*979d76c9SAndrew Turner _ebss = .; 112*979d76c9SAndrew Turner /* A section for the initial page table, it doesn't need to be in the 113*979d76c9SAndrew Turner kernel file, however unlike normal .bss entries should not be zeroed 114*979d76c9SAndrew Turner out as we use it before the .bss section is cleared. */ 115*979d76c9SAndrew Turner *(.init_pagetable) 11678b36e3cSOlivier Houchard } 11778b36e3cSOlivier Houchard . = ALIGN(32 / 8); 11878b36e3cSOlivier Houchard _end = . ; 11978b36e3cSOlivier Houchard PROVIDE (end = .); 12078b36e3cSOlivier Houchard /* Stabs debugging sections. */ 12178b36e3cSOlivier Houchard .stab 0 : { *(.stab) } 12278b36e3cSOlivier Houchard .stabstr 0 : { *(.stabstr) } 12378b36e3cSOlivier Houchard .stab.excl 0 : { *(.stab.excl) } 12478b36e3cSOlivier Houchard .stab.exclstr 0 : { *(.stab.exclstr) } 12578b36e3cSOlivier Houchard .stab.index 0 : { *(.stab.index) } 12678b36e3cSOlivier Houchard .stab.indexstr 0 : { *(.stab.indexstr) } 12778b36e3cSOlivier Houchard .comment 0 : { *(.comment) } 12878b36e3cSOlivier Houchard /* DWARF debug sections. 12978b36e3cSOlivier Houchard Symbols in the DWARF debugging sections are relative to the beginning 13078b36e3cSOlivier Houchard of the section so we begin them at 0. */ 13178b36e3cSOlivier Houchard /* DWARF 1 */ 13278b36e3cSOlivier Houchard .debug 0 : { *(.debug) } 13378b36e3cSOlivier Houchard .line 0 : { *(.line) } 13478b36e3cSOlivier Houchard /* GNU DWARF 1 extensions */ 13578b36e3cSOlivier Houchard .debug_srcinfo 0 : { *(.debug_srcinfo) } 13678b36e3cSOlivier Houchard .debug_sfnames 0 : { *(.debug_sfnames) } 13778b36e3cSOlivier Houchard /* DWARF 1.1 and DWARF 2 */ 13878b36e3cSOlivier Houchard .debug_aranges 0 : { *(.debug_aranges) } 13978b36e3cSOlivier Houchard .debug_pubnames 0 : { *(.debug_pubnames) } 14078b36e3cSOlivier Houchard /* DWARF 2 */ 14178b36e3cSOlivier Houchard .debug_info 0 : { *(.debug_info) } 14278b36e3cSOlivier Houchard .debug_abbrev 0 : { *(.debug_abbrev) } 14378b36e3cSOlivier Houchard .debug_line 0 : { *(.debug_line) } 14478b36e3cSOlivier Houchard .debug_frame 0 : { *(.debug_frame) } 14578b36e3cSOlivier Houchard .debug_str 0 : { *(.debug_str) } 14678b36e3cSOlivier Houchard .debug_loc 0 : { *(.debug_loc) } 14778b36e3cSOlivier Houchard .debug_macinfo 0 : { *(.debug_macinfo) } 14878b36e3cSOlivier Houchard /* SGI/MIPS DWARF 2 extensions */ 14978b36e3cSOlivier Houchard .debug_weaknames 0 : { *(.debug_weaknames) } 15078b36e3cSOlivier Houchard .debug_funcnames 0 : { *(.debug_funcnames) } 15178b36e3cSOlivier Houchard .debug_typenames 0 : { *(.debug_typenames) } 15278b36e3cSOlivier Houchard .debug_varnames 0 : { *(.debug_varnames) } 15378b36e3cSOlivier Houchard /* These must appear regardless of . */ 15478b36e3cSOlivier Houchard} 155