2001-07-07 20:35:22 +04:00
|
|
|
/* $NetBSD: shl-elf.x,v 1.2 2001/07/07 16:35:22 uch Exp $ */
|
2001-03-22 21:35:33 +03:00
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-shl-unx")
|
|
|
|
OUTPUT_ARCH(sh)
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
ram : o = 0x8c001000, l = 16M
|
|
|
|
}
|
|
|
|
SECTIONS
|
|
|
|
{
|
2001-07-07 20:35:22 +04:00
|
|
|
trap_base = 0x8c000000;
|
|
|
|
PROVIDE (trap_base = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
.text :
|
|
|
|
{
|
2001-07-07 20:35:22 +04:00
|
|
|
ftext = . ;
|
2001-03-22 21:35:33 +03:00
|
|
|
*(.text)
|
|
|
|
*(.rodata)
|
|
|
|
*(.strings)
|
|
|
|
} > ram
|
2001-07-07 20:35:22 +04:00
|
|
|
etext = . ;
|
|
|
|
PROVIDE (etext = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
. = ALIGN(8);
|
|
|
|
.data :
|
|
|
|
{
|
2001-07-07 20:35:22 +04:00
|
|
|
fdata = . ;
|
|
|
|
PROVIDE (fdata = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
*(.data)
|
|
|
|
CONSTRUCTORS
|
|
|
|
} > ram
|
2001-07-07 20:35:22 +04:00
|
|
|
edata = . ;
|
|
|
|
PROVIDE (edata = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
. = ALIGN(8);
|
|
|
|
.bss :
|
|
|
|
{
|
2001-07-07 20:35:22 +04:00
|
|
|
fbss = . ;
|
|
|
|
PROVIDE (fbss = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
} > ram
|
|
|
|
. = ALIGN(4);
|
2001-07-07 20:35:22 +04:00
|
|
|
end = . ;
|
|
|
|
PROVIDE (end = .);
|
2001-03-22 21:35:33 +03:00
|
|
|
|
|
|
|
/* Stabs debugging sections. */
|
|
|
|
.stab 0 : { *(.stab) }
|
|
|
|
.stabstr 0 : { *(.stabstr) }
|
|
|
|
}
|
|
|
|
|