Final patch for shared library problem in SCO OpenServer

Robert Lipe robertlipe@usa.net
Sat Feb 27 12:46:00 GMT 1999


[ Jeff, have we missed 1.1.2 cutoff on this? ] 

Arturo Montes wrote:

> I am sending a complete patch to resolve the problem with shared libraries:

Please review http://egcs.cygnus.com/contribute.html .   
Please don't send a uuencoded tarball of reversed individual patches.  

I tested this with a full bootstrap and a testsuite run for all
languages for both ELF and COFF.  There was no change in the test
results. (Though there were many regressions in the last 24 hours,
that's covered in a different message.)  It does make the example you
send me earlier work the same on both Linux and OpenServer, though it'
different than what you described in the text of that message.

I have committed the attached patch on the trunk.



Sat Feb 27 14:31:22 1999  Arturo Montes  <mitosys@colomsat.com.co>

        * config/i386/t-sco5 (crti.o): New target.
        * config/i386/sco5.h (STARTFILE_SPEC): Include crti.o when 
        linking -shared.
        * configure.in (i[34567]86-*-sco3.2v5*): Add crti.o.


Index: config/i386/t-sco5
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/t-sco5,v
retrieving revision 1.3
diff -u -p -r1.3 t-sco5
--- t-sco5	1998/12/16 21:04:35	1.3
+++ t-sco5	1999/02/27 20:35:45
@@ -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
Index: config/i386/sco5.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/sco5.h,v
retrieving revision 1.25
diff -u -p -r1.25 sco5.h
--- sco5.h	1999/01/31 17:46:38	1.25
+++ sco5.h	1999/02/27 20:35:45
@@ -812,7 +812,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} \
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.211
diff -u -p -r1.211 configure.in
--- configure.in	1999/02/22 11:31:56	1.211
+++ configure.in	1999/02/27 20:35:49
@@ -1340,7 +1340,7 @@ changequote([,])dnl
 		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"
 		;;
 changequote(,)dnl
 	i[34567]86-*-sco3.2v4*) 	# 80386 running SCO 3.2v4 system


More information about the Gcc-patches mailing list