2000-05-21 06:50:10 +04:00
|
|
|
/* $NetBSD: stand.ldscript.le,v 1.1 2000/05/21 02:50:13 soren Exp $ */
|
1997-10-06 02:17:56 +04:00
|
|
|
|
2000-05-21 06:50:10 +04:00
|
|
|
/* ldscript for NetBSD/mipsel stand-alone programs */
|
1997-10-06 02:17:56 +04:00
|
|
|
OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips",
|
|
|
|
"elf32-littlemips")
|
|
|
|
OUTPUT_ARCH(mips)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* Read-only sections, merged into text segment. Assumes the
|
2000-05-21 06:50:10 +04:00
|
|
|
stand Makefile sets the start address via -Ttext. */
|
1997-10-06 02:17:56 +04:00
|
|
|
.text :
|
|
|
|
{
|
|
|
|
_ftext = . ;
|
|
|
|
*(.text)
|
|
|
|
*(.gnu.warning)
|
|
|
|
} =0
|
|
|
|
_etext = .;
|
|
|
|
PROVIDE (etext = .);
|
|
|
|
.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 = .);
|
|
|
|
}
|