summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturo Montes <mitosys@colomsat.com.co>1999-02-27 13:39:24 -0500
committerJeff Law <law@gcc.gnu.org>1999-02-27 11:39:24 -0700
commitd772098eae61b2154f2e7f3681dcd5b31ad687df (patch)
tree8561553c8769281fa8d36512a60c410487096c1f
parent464b5afc755e5b31f87561797e1b62841442f3be (diff)
downloadgcc-d772098eae61b2154f2e7f3681dcd5b31ad687df.tar.gz
t-sco5 (crti.o): New target.
* i386/t-sco5 (crti.o): New target. * i386/sco5.h (STARTFILE_SPEC): Include crti.o when linking -shared. * configure.in (i[34567]86-*-sco3.2v5*): Add crti.o. * configure: Rebuilt. From-SVN: r25484
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/i386/sco5.h3
-rw-r--r--gcc/config/i386/t-sco54
-rwxr-xr-xgcc/configure2
-rw-r--r--gcc/configure.in2
5 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0f5b4a88416..c7a94b6d297 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+Sat Feb 27 19:37:04 1999 Arturo Montes <mitosys@colomsat.com.co>
+
+ * i386/t-sco5 (crti.o): New target.
+ * i386/sco5.h (STARTFILE_SPEC): Include crti.o when
+ linking -shared.
+ * configure.in (i[34567]86-*-sco3.2v5*): Add crti.o.
+ * configure: Rebuilt.
+
Sat Feb 27 19:29:46 1999 Toon Moene <toon@moene.indiv.nluug.nl>
Mark Mitchell <mark@markmitchell.com>
Jeffrey A Law (law@cygnus.com)
diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h
index 62156ddec2b..74fb891954b 100644
--- a/gcc/config/i386/sco5.h
+++ b/gcc/config/i386/sco5.h
@@ -805,7 +805,8 @@ dtors_section () \
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
- "%{!shared:\
+ "%{shared: %{!mcoff: crti.o%s}} \
+ %{!shared:\
%{!symbolic: \
%{pg:gcrt.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}} \
%{ansi:values-Xc.o%s} \
diff --git a/gcc/config/i386/t-sco5 b/gcc/config/i386/t-sco5
index fd3d6c63b8e..f602066e995 100644
--- a/gcc/config/i386/t-sco5
+++ b/gcc/config/i386/t-sco5
@@ -14,3 +14,7 @@ MULTILIB_EXTRA_OPTS =
LIBGCC=stmp-multilib
INSTALL_LIBGCC=install-multilib
+
+crti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
+ sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
+ $(GCC_FOR_TARGET) -c -o crti.o crti.s
diff --git a/gcc/configure b/gcc/configure
index db856389dbe..5987093f27c 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -3034,7 +3034,7 @@ for machine in $build $host $target; do
else
tmake_file=i386/t-sco5
fi
- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
+ extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
xm_file="${xm_file} i386/xm-sco.h"
diff --git a/gcc/configure.in b/gcc/configure.in
index 1f3711f338f..d840d57f618 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -1055,7 +1055,7 @@ for machine in $build $host $target; do
else
tmake_file=i386/t-sco5
fi
- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
+ extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
xm_file="${xm_file} i386/xm-sco.h"