[PATCH Re-RFA] add STARTUP files to all mips linker scripts

cgd@broadcom.com cgd@broadcom.com
Thu Aug 1 09:17:00 GMT 2002


I withdrew the following patch until the gcc bits had all been sorted
out.  They have been.

I've retested this patch on various targets (incl mips-elf, mips64-elf
w/ mips-sim and mips64-sim, respectively), and all is well, so now i'm
resubmitting it.

(From now on, all of the libgloss mips linker scripts should use
STARTUP.)


cgd
===================================================================
2002-08-01  Chris Demetriou  <cgd@broadcom.com>

	* mips/cfe.ld (STARTUP): New definition.
	* mips/ddb-kseg0.ld (STARTUP): Likewise.
	* mips/ddb.ld (STARTUP): Likewise.
	* mips/dve.ld (STARTUP): Likewise.
	* mips/idt.ld (STARTUP): Likewise.
	* mips/jmr3904app-java.ld (STARTUP): Likewise.
	* mips/jmr3904app.ld (STARTUP): Likewise.
	* mips/jmr3904dram-java.ld (STARTUP): Likewise.
	* mips/jmr3904dram.ld (STARTUP): Likewise.
	* mips/lsi.ld (STARTUP): Likewise.
	* mips/nullmon.ld (STARTUP): Likewise.
	* mips/pmon.ld (STARTUP): Likewise.

Index: mips/cfe.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/cfe.ld,v
retrieving revision 1.1
diff -u -p -r1.1 cfe.ld
--- mips/cfe.ld	12 Jul 2002 17:55:04 -0000	1.1
+++ mips/cfe.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_prestart)
+STARTUP(crt0.o)
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lcfe -lgcc)
 SEARCH_DIR(.)
Index: mips/ddb-kseg0.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/ddb-kseg0.ld,v
retrieving revision 1.2
diff -u -p -r1.2 ddb-kseg0.ld
--- mips/ddb-kseg0.ld	12 Jul 2002 15:37:03 -0000	1.2
+++ mips/ddb-kseg0.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lpmon -lgcc)
 SEARCH_DIR(.)
Index: mips/ddb.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/ddb.ld,v
retrieving revision 1.2
diff -u -p -r1.2 ddb.ld
--- mips/ddb.ld	12 Jul 2002 15:37:03 -0000	1.2
+++ mips/ddb.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lpmon -lgcc)
 SEARCH_DIR(.)
Index: mips/dve.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/dve.ld,v
retrieving revision 1.2
diff -u -p -r1.2 dve.ld
--- mips/dve.ld	12 Jul 2002 15:37:03 -0000	1.2
+++ mips/dve.ld	24 Jul 2002 01:37:00 -0000
@@ -1,6 +1,7 @@
 /* Linker script for Densan DVE-R3900/20A board */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:3000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -ldve -lgcc)
Index: mips/idt.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/idt.ld,v
retrieving revision 1.3
diff -u -p -r1.3 idt.ld
--- mips/idt.ld	12 Jul 2002 15:37:04 -0000	1.3
+++ mips/idt.ld	24 Jul 2002 01:37:00 -0000
@@ -3,6 +3,7 @@
    0xa001af20. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lidt -lgcc)
 SEARCH_DIR(.)
Index: mips/jmr3904app-java.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/jmr3904app-java.ld,v
retrieving revision 1.2
diff -u -p -r1.2 jmr3904app-java.ld
--- mips/jmr3904app-java.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/jmr3904app-java.ld	24 Jul 2002 01:37:00 -0000
@@ -1,6 +1,7 @@
 /* Linker script forJMR 3904 board using Java + qthreads */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:3000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -ljmr3904 -lgcc -lgcjcoop)
Index: mips/jmr3904app.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/jmr3904app.ld,v
retrieving revision 1.2
diff -u -p -r1.2 jmr3904app.ld
--- mips/jmr3904app.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/jmr3904app.ld	24 Jul 2002 01:37:00 -0000
@@ -1,6 +1,7 @@
 /* Linker script forJMR 3904 board */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:3000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -ljmr3904 -lgcc)
Index: mips/jmr3904dram-java.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/jmr3904dram-java.ld,v
retrieving revision 1.2
diff -u -p -r1.2 jmr3904dram-java.ld
--- mips/jmr3904dram-java.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/jmr3904dram-java.ld	24 Jul 2002 01:37:00 -0000
@@ -1,6 +1,7 @@
 /* Linker script forJMR 3904 board using Java + qthreads */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:3000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -ljmr3904 -lgcc -lgcjcoop)
Index: mips/jmr3904dram.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/jmr3904dram.ld,v
retrieving revision 1.2
diff -u -p -r1.2 jmr3904dram.ld
--- mips/jmr3904dram.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/jmr3904dram.ld	24 Jul 2002 01:37:00 -0000
@@ -1,6 +1,7 @@
 /* Linker script forJMR 3904 board */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:3000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -ljmr3904 -lgcc)
Index: mips/lsi.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/lsi.ld,v
retrieving revision 1.2
diff -u -p -r1.2 lsi.ld
--- mips/lsi.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/lsi.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:4000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -llsi -lgcc)
Index: mips/nullmon.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/nullmon.ld,v
retrieving revision 1.2
diff -u -p -r1.2 nullmon.ld
--- mips/nullmon.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/nullmon.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:4000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lnullmon -lgcc)
Index: mips/pmon.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mips/pmon.ld,v
retrieving revision 1.2
diff -u -p -r1.2 pmon.ld
--- mips/pmon.ld	12 Jul 2002 15:37:04 -0000	1.2
+++ mips/pmon.ld	24 Jul 2002 01:37:00 -0000
@@ -2,6 +2,7 @@
    workspace. */
 
 ENTRY(_start)
+STARTUP(crt0.o)
 OUTPUT_ARCH("mips:4000")
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
 GROUP(-lc -lpmon -lgcc)





More information about the Newlib mailing list