Sindbad~EG File Manager
/* Script for -N */
OUTPUT_FORMAT("elf32-visium")
ENTRY(__start)
/* Start and end of main stack. Assumes 256K of RAM. */
_estack = 0xe0040000 - 4;
_sstack = 0xe0040000 - 64K;
/* End of heap. */
_eheap = _sstack - 4;
MEMORY
{
init : ORIGIN = 0x00000000, LENGTH = 0x0003fffc
scr : ORIGIN = 0x0003fffc, LENGTH = 0x00000004
rom : ORIGIN = 0x00044000, LENGTH = 0x1ffbc000
ram : ORIGIN = 0xe0000000, LENGTH = 0x10000000
saferam : ORIGIN = 0xf0000000, LENGTH = 0x10000000
}
SECTIONS
{
.init : {
KEEP (*(SORT_NONE(.init)))
KEEP (*(SORT_NONE(.fini)))
_einit = .;
} > init
.text : {
_ftext = .;
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
_etext = .;
} > rom
.ctors : {
. = ALIGN(4);
__CTOR_LIST__ = .;
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin*.o(.ctors))
/* We don't want to include the .ctor section from
from the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last. */
KEEP (*(EXCLUDE_FILE (*crtend*.o) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
__CTOR_END__ = .;
} > rom
.dtors : {
__DTOR_LIST__ = .;
KEEP (*crtbegin*.o(.dtors))
KEEP (*(EXCLUDE_FILE (*crtend*.o) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
__DTOR_END__ = .;
} > rom
.rodata : {
. = ALIGN(4);
_srdata = .;
*(.rdata)
*(.rodata)
*(.rodata.*)
*(.gnu.linkonce.r.*)
. = ALIGN(4);
_erdata = .;
} > rom
.eh_frame :
{
PROVIDE (__eh_frame_begin = .);
*(.eh_frame)
LONG (0);
PROVIDE (__eh_frame_end = .);
} > rom
.gcc_except_table : { *(.gcc_except_table) } > rom
.jcr : { *(.jcr) } > rom
.data : {
. = ALIGN(4);
_sdata = .;
*(.data)
*(.data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(4);
_edata = .;
} > ram
.bss : {
. = ALIGN(4);
__bss_start = .;
*(.bss)
*(.bss.*)
*(.gnu.linkonce.b.*)
*(COMMON)
. = ALIGN(4);
__bss_end = .;
_sheap = .;
} > ram
saferam : {
*(saferam)
. = ALIGN(4);
unitidentry = .;
} > saferam
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1. */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions. */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2. */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2. */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions. */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3. */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF 5. */
.debug_addr 0 : { *(.debug_addr) }
.debug_line_str 0 : { *(.debug_line_str) }
.debug_loclists 0 : { *(.debug_loclists) }
.debug_macro 0 : { *(.debug_macro) }
.debug_names 0 : { *(.debug_names) }
.debug_rnglists 0 : { *(.debug_rnglists) }
.debug_str_offsets 0 : { *(.debug_str_offsets) }
.debug_sup 0 : { *(.debug_sup) }
}
/* Provide a default address for the simulated file-I/O device. */
PROVIDE (_sim_fileio_register = 0x2fff0000);
/* Provide a default address for the simulated command line device. */
PROVIDE (_sim_cmdline_header = 0x2ffe0000);
/* Provide a default address for the simulated 1 MHz clock. */
PROVIDE (_sim_clock = 0x20002100);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists