NetBSD/sys/arch/mips/conf/stand.ldscript
tsutsui a97c5654cb Merge .rodata.* sections (like .rodata.str1.4) into .rodata section.
Newer binutils creates such sections and old firmware might be confused.
2010-05-04 15:00:39 +00:00

42 lines
804 B
Plaintext

/* $NetBSD: stand.ldscript,v 1.4 2010/05/04 15:00:39 tsutsui Exp $ */
/* ldscript for NetBSD/mips stand-alone programs */
OUTPUT_ARCH(mips)
ENTRY(_start)
SECTIONS
{
/* Read-only sections, merged into text segment. Assumes the
stand Makefile sets the start address via -Ttext. */
.text :
{
_ftext = . ;
*(.text)
*(.gnu.warning)
} =0
_etext = .;
PROVIDE (etext = .);
.rodata : { *(.rodata) *(.rodata.*) }
.data :
{
_fdata = . ;
*(.data)
CONSTRUCTORS
}
_gp = ALIGN(16);
.lit8 : { *(.lit8) }
.lit4 : { *(.lit4) }
.sdata : { *(.sdata) }
_edata = .;
PROVIDE (edata = .);
__bss_start = .;
_fbss = .;
.sbss : { *(.sbss) *(.scommon) }
.bss :
{
*(.bss)
*(COMMON)
}
_end = . ;
PROVIDE (end = .);
}