2003-08-20 Chris Demetriou <cgd@broadcom.com>

* mips/crt0_cfe.S: New file.
        * mips/cfe_mem.c: New file.
        * mips/cfe_prestart.S: Remove.
        * mips/cfe.ld: Adjust to use crt0_cfe.o as the startup file, and
        and use _start as the entry point.  Align BSS to 32-byte boundary.
        * mips/cfe.c: Reimplement to fit on top of a crt0_cfe.o file.
        * mips/cfe_api.h (__libcfe_stack_size, __libcfe_mem_limit)
        (__libcfe_meminit, __libcfe_stack_top): New prototypes.
        * mips/Makefile.in (CFEOBJS): Replace cfe_prestart.o with cfe_mem.o.
        (cfe.o, cfe_api.o, cfe_mem.o, crt0_cfe.o): New targets.
        * mips/configure.in: Build and install crt0_cfe.o when CFE support
        is built.
        * mips/configure: Regenerate.
This commit is contained in:
Jeff Johnston
2003-08-20 19:32:52 +00:00
parent 2bf794af9a
commit 49703eb3f5
10 changed files with 502 additions and 180 deletions

View File

@@ -1,8 +1,8 @@
/* The following TEXT start address leaves space for the monitor
workspace. */
ENTRY(_prestart)
STARTUP(crt0.o)
ENTRY(_start)
STARTUP(crt0_cfe.o)
OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
GROUP(-lc -lcfe -lgcc)
SEARCH_DIR(.)
@@ -127,6 +127,7 @@ SECTIONS
*(COMMON)
}
. = ALIGN(32);
PROVIDE (end = .);
_end = .;