mips-bsd and 386bsd support
authorKen Raeburn <raeburn@cygnus>
Sun, 28 Feb 1993 14:46:25 +0000 (14:46 +0000)
committerKen Raeburn <raeburn@cygnus>
Sun, 28 Feb 1993 14:46:25 +0000 (14:46 +0000)
ld/.Sanitize
ld/ChangeLog
ld/Makefile.in
ld/aout-mipsbsd.sc-sh [new file with mode: 0644]
ld/config/.Sanitize
ld/config/i386-bsd.mt [new file with mode: 0644]
ld/config/mipsbsd.mt [new file with mode: 0644]
ld/configure.in
ld/i386bsd.sh [new file with mode: 0644]
ld/mipsbsd.sh [new file with mode: 0644]

index f11aecd171a93ba13d6af954a6bd9e150280cae5..e5c729e7334fd6cb89f5543da903169513c847a2 100644 (file)
@@ -36,6 +36,7 @@ TODO
 a29k.sc-sh
 a29k.sh
 aout.sc-sh
+aout-mipsbsd.sc-sh
 cdtest-foo.cc
 cdtest-foo.h
 cdtest-func.cc
@@ -61,6 +62,7 @@ h8300xray.em
 h8300xray.sc-sh
 h8300xray.sh
 i386aout.sh
+i386bsd.sh
 i386coff.sc-sh
 i386coff.sh
 i960.sc-sh
@@ -105,6 +107,7 @@ m88kbcs.sc-sh
 m88kbcs.sh
 mips.sc-sh
 mipsbig.sh
+mipsbsd.sh
 mipslit.sh
 mri.c
 mri.h
@@ -158,7 +161,10 @@ fi
 #
 #
 # $Log$
-# Revision 1.51  1993/02/26 18:53:13  dje
+# Revision 1.52  1993/02/28 14:42:15  raeburn
+# mips-bsd and 386bsd support
+#
+# Revision 1.51  1993/02/26  18:53:13  dje
 # Added initial sparc-v9 support.
 #
 # Revision 1.50  1993/02/13  10:15:14  zoo
index 2c0488801043814897248323bd7c35062a703c67..f86384026a276d8632ca439e02f882eaed173014 100644 (file)
@@ -1,5 +1,13 @@
+Sat Feb 27 00:00:14 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
+
+       * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
+       ralphc@pyramid.com.
+       * i386bsd.sh, config/i386bsd.mt: New files.
+       * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
+
 Thu Feb 25 15:33:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
 
+       * mri.c:  Add extern declaration of strdup.
        * ldsym.c (KEEP macro):  Add spaces around '=' for the
        sake of old (e.g. PCC) compilers.
 
index 9c1328e6802f9372b0c02aa96ba27f19719e0150..e0dad2d3b9261da32e6c4d6f561b278fbfdc7c09 100644 (file)
@@ -119,7 +119,8 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
        em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o \
        em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \
        em_m68kcoff.o em_h8300xray.o em_st2000.o em_sa29200.o \
-       em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o
+       em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
+       em_mipsbig.o em_mipsbsd.o
 
 EMULATION_OFILES=${ALL_EMULATIONS}
 #EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
@@ -258,6 +259,15 @@ em_i386coff.c: $(srcdir)/i386coff.sh \
 em_mipslit.c:  $(srcdir)/mipslit.sh \
   $(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
        ${GENSCRIPTS} mipslit.sh
+em_i386bsd.c: $(srcdir)/i386bsd.sh \
+  $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
+       ${GENSCRIPTS} i386bsd.sh
+em_mipsbig.c:  $(srcdir)/mipsbig.sh \
+  $(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
+       ${GENSCRIPTS} mipsbig.sh
+em_mipsbsd.c: $(srcdir)/mipsbsd.sh \
+  $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
+       ${GENSCRIPTS} mipsbsd.sh
 
 $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
        $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
diff --git a/ld/aout-mipsbsd.sc-sh b/ld/aout-mipsbsd.sc-sh
new file mode 100644 (file)
index 0000000..6875794
--- /dev/null
@@ -0,0 +1,28 @@
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH(${ARCH})
+
+${RELOCATING+${LIB_SEARCH_DIRS}}
+${RELOCATING+__DYNAMIC  =  0;}
+SECTIONS
+{
+  .text ${RELOCATING+${TEXT_START_ADDR}}:
+  {
+    CREATE_OBJECT_SYMBOLS
+    *(.text)
+    ${RELOCATING+etext = ${DATA_ALIGNMENT};}
+  }
+  .data  ${RELOCATING+${DATA_ALIGNMENT}} :
+  {
+    *(.data)
+    ${CONSTRUCTING+CONSTRUCTORS}
+    ${RELOCATING+edata  =  .;}
+  }
+  .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
+  {
+   *(.bss)
+   *(COMMON)
+   ${RELOCATING+end = . };
+  }
+}
+EOF
index 99b40ab18eda10a570c9ccf4fb857e2243f6dacf..756ef0f84883e14796b7dbe98209cf8d58268093 100644 (file)
@@ -32,6 +32,7 @@ go32.mt
 hp300.mh
 hp300bsd.mt
 i386-aout.mt
+i386-bsd.mt
 i386-coff.mt
 i386v.mt
 i960.mt
@@ -40,6 +41,7 @@ m68k-coff.mt
 m68k.mt
 m68kv.mt
 m88k-bcs.mt
+mipsbsd.mt
 mips-big.mt
 mips-lit.mt
 news.mt
diff --git a/ld/config/i386-bsd.mt b/ld/config/i386-bsd.mt
new file mode 100644 (file)
index 0000000..a5c4e92
--- /dev/null
@@ -0,0 +1 @@
+EMUL=i386bsd
diff --git a/ld/config/mipsbsd.mt b/ld/config/mipsbsd.mt
new file mode 100644 (file)
index 0000000..d48c647
--- /dev/null
@@ -0,0 +1 @@
+EMUL=mipsbsd
index 9b2a9a5e9819ac42e175ebcc04b49c31ce8cbed9..7cf3c533ac03e9b680085718fe9a2f2b4d670c33 100644 (file)
@@ -38,6 +38,10 @@ case "${target}" in
                        ;;
   sparc*-*-aout)       my_target=sun4
                        ;;
+# start-sanitize-v9
+  sparc64*)            my_target=sun4
+                       ;;
+# end-sanitize-v9
   i960-wrs-vxworks*)    my_target=i960
                        ;;
   i960-intel-nindy)    my_target=i960
@@ -58,12 +62,14 @@ case "${target}" in
                        ;;
   *-tandem-none)       my_target=st2000 # FIXME needs better name
                        ;;
-  i386-go32-*)         my_target=go32
+  i386-*-go32)         my_target=go32
                        ;;
   i386-*-sco*)         my_target=i386-coff
                        ;;
   i386-*-coff)          my_target=i386-coff
                        ;;
+  i[34]86-*-bsd)       my_target=i386-bsd
+                       ;;
   i386-*-aout)         my_target=i386-aout
                        ;;
   i386-*-sysv*)                my_target=i386-coff
@@ -93,6 +99,10 @@ case "${target}" in
                        ;;
   mips-dec-ultrix*)    my_target=mips-lit
                        ;;
+  mips-sgi-irix*)      my_target=mips-big
+                       ;;
+  mips-dec-bsd*)       my_target=mipsbsd
+                       ;;
   z8k-*sim)            my_target=z8ksim
                        ;;
   *-*-aout)            my_target=${target_cpu}-${target_vendor} 
diff --git a/ld/i386bsd.sh b/ld/i386bsd.sh
new file mode 100644 (file)
index 0000000..a6d55a9
--- /dev/null
@@ -0,0 +1,7 @@
+EMULATION_NAME=i386bsd
+SCRIPT_NAME=aout
+OUTPUT_FORMAT="a.out-i386-bsd"
+PAGE_SIZE=0x1000
+TEXT_START_ADDR=0
+NONPAGED_TEXT_START_ADDR=0x1000
+ARCH=i386
diff --git a/ld/mipsbsd.sh b/ld/mipsbsd.sh
new file mode 100644 (file)
index 0000000..fad8715
--- /dev/null
@@ -0,0 +1,6 @@
+EMULATION_NAME=mipsbsd
+SCRIPT_NAME=aout-mipsbsd
+OUTPUT_FORMAT="aout-mips-little"
+TEXT_START_ADDR=0x1020
+PAGE_SIZE=4096
+ARCH=mips