This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use i386/t-crtstuff on Solaris 8/9 x86


When bootstrapping mainline on Solaris 8 and 9/x86 with gas and gld
2.21, all link tests failed like this:

/vol/gcc/bin/gld-2.21: error in /var/gcc/regression/trunk/9-gcc-gas-gld/build/gc
c/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.

While the error message is completely useless without more details, it
turned out that this is another instance of unwind information after the
ZERO terminator, so the same fix as on Solaris 10+/x86 applies.

With the patch below, i386-pc-solaris2.9 bootstraps with gas 2.21 and
Sun ld resp. gld 2.21 completed with clean testsuite results.

Installed on mainline, will install on the 4.4 and 4.5 branches after
testing completes and the 4.5 branch reopens.

	Rainer


2010-12-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac: Use i386/t-crtstuff on i?86-*-solaris2* if
	appropriate.
	* configure: Regenerate.

diff -r 293f3445f8cc libgcc/configure.ac
--- a/libgcc/configure.ac	Fri Dec 10 17:41:34 2010 +0100
+++ b/libgcc/configure.ac	Fri Dec 10 17:50:42 2010 +0100
@@ -169,7 +169,7 @@
 # Link with -nostartfiles -nodefaultlibs since neither are present while
 # building libgcc.
 case ${host} in
-i?86-*-solaris2.1[[0-9]]*)
+i?86-*-solaris2*)
   cat > conftest.s <<EOF
 	.section	.eh_frame,"a",@unwind
 	.zero	4

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]