199767f8919635c4928607450d9e0abb932109ceToomas Soome/* $FreeBSD$ */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeOUTPUT_ARCH(arm)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeENTRY(_start)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSECTIONS
199767f8919635c4928607450d9e0abb932109ceToomas Soome{
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* Read-only sections, merged into text segment: */
199767f8919635c4928607450d9e0abb932109ceToomas Soome . = UBLDR_LOADADDR + SIZEOF_HEADERS;
199767f8919635c4928607450d9e0abb932109ceToomas Soome .text :
199767f8919635c4928607450d9e0abb932109ceToomas Soome {
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.text)
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* .gnu.warning sections are handled specially by elf32.em. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.gnu.warning)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.gnu.linkonce.t*)
199767f8919635c4928607450d9e0abb932109ceToomas Soome } =0
199767f8919635c4928607450d9e0abb932109ceToomas Soome _etext = .;
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (etext = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .interp : { *(.interp) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .hash : { *(.hash) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .dynsym : { *(.dynsym) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .dynstr : { *(.dynstr) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .gnu.version : { *(.gnu.version) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .gnu.version_d : { *(.gnu.version_d) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .gnu.version_r : { *(.gnu.version_r) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.text :
199767f8919635c4928607450d9e0abb932109ceToomas Soome { *(.rela.text) *(.rela.gnu.linkonce.t*) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.data :
199767f8919635c4928607450d9e0abb932109ceToomas Soome { *(.rela.data) *(.rela.gnu.linkonce.d*) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.rodata :
199767f8919635c4928607450d9e0abb932109ceToomas Soome { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.got : { *(.rela.got) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.got1 : { *(.rela.got1) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.got2 : { *(.rela.got2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.ctors : { *(.rela.ctors) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.dtors : { *(.rela.dtors) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.init : { *(.rela.init) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.fini : { *(.rela.fini) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.bss : { *(.rela.bss) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.plt : { *(.rela.plt) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.sdata : { *(.rela.sdata) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.sbss : { *(.rela.sbss) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.sdata2 : { *(.rela.sdata2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rela.sbss2 : { *(.rela.sbss2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .init : { *(.init) } =0
199767f8919635c4928607450d9e0abb932109ceToomas Soome .fini : { *(.fini) } =0
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .rodata1 : { *(.rodata1) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .sdata2 : { *(.sdata2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .sbss2 : { *(.sbss2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* Adjust the address for the data segment to the next page up. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome . = ((. + 0x1000) & ~(0x1000 - 1));
199767f8919635c4928607450d9e0abb932109ceToomas Soome .data :
199767f8919635c4928607450d9e0abb932109ceToomas Soome {
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.data)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.gnu.linkonce.d*)
199767f8919635c4928607450d9e0abb932109ceToomas Soome CONSTRUCTORS
199767f8919635c4928607450d9e0abb932109ceToomas Soome }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .data1 : { *(.data1) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .got1 : { *(.got1) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .dynamic : { *(.dynamic) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* Put .ctors and .dtors next to the .got2 section, so that the pointers
199767f8919635c4928607450d9e0abb932109ceToomas Soome get relocated with -mrelocatable. Also put in the .fixup pointers.
199767f8919635c4928607450d9e0abb932109ceToomas Soome The current compiler no longer needs this, but keep it around for 2.7.2 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_GOT2_START_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .got2 : { *(.got2) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__CTOR_LIST__ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .ctors : { *(.ctors) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__CTOR_END__ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__DTOR_LIST__ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .dtors : { *(.dtors) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__DTOR_END__ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_FIXUP_START_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .fixup : { *(.fixup) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_FIXUP_END_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_GOT2_END_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_GOT_START_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .got : { *(.got) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .got.plt : { *(.got.plt) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (_GOT_END_ = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* We want the small data sections together, so single-instruction offsets
199767f8919635c4928607450d9e0abb932109ceToomas Soome can access them all, and initialized data all before uninitialized, so
199767f8919635c4928607450d9e0abb932109ceToomas Soome we can shorten the on-disk segment size. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .sdata : { *(.sdata) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome _edata = .;
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (edata = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome .sbss :
199767f8919635c4928607450d9e0abb932109ceToomas Soome {
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__sbss_start = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.sbss)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.scommon)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.dynsbss)
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__sbss_end = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .plt : { *(.plt) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .bss :
199767f8919635c4928607450d9e0abb932109ceToomas Soome {
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (__bss_start = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.dynbss)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(.bss)
199767f8919635c4928607450d9e0abb932109ceToomas Soome *(COMMON)
199767f8919635c4928607450d9e0abb932109ceToomas Soome }
199767f8919635c4928607450d9e0abb932109ceToomas Soome _end = . ;
199767f8919635c4928607450d9e0abb932109ceToomas Soome PROVIDE (end = .);
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* Stabs debugging sections. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .stab 0 : { *(.stab) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .stabstr 0 : { *(.stabstr) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* DWARF debug sections.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Symbols in the DWARF debugging sections are relative to the beginning
199767f8919635c4928607450d9e0abb932109ceToomas Soome of the section so we begin them at 0. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* DWARF 1 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug 0 : { *(.debug) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .line 0 : { *(.line) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* GNU DWARF 1 extensions */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_srcinfo 0 : { *(.debug_srcinfo) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_sfnames 0 : { *(.debug_sfnames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* DWARF 1.1 and DWARF 2 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_aranges 0 : { *(.debug_aranges) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_pubnames 0 : { *(.debug_pubnames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* DWARF 2 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_info 0 : { *(.debug_info) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_abbrev 0 : { *(.debug_abbrev) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_line 0 : { *(.debug_line) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_frame 0 : { *(.debug_frame) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_str 0 : { *(.debug_str) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_loc 0 : { *(.debug_loc) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_macinfo 0 : { *(.debug_macinfo) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* SGI/MIPS DWARF 2 extensions */
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_weaknames 0 : { *(.debug_weaknames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_funcnames 0 : { *(.debug_funcnames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_typenames 0 : { *(.debug_typenames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome .debug_varnames 0 : { *(.debug_varnames) }
199767f8919635c4928607450d9e0abb932109ceToomas Soome /* These must appear regardless of . */
199767f8919635c4928607450d9e0abb932109ceToomas Soome}