public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Use i386/t-crtstuff on Solaris 8/9 x86
@ 2010-12-10 17:32 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2010-12-10 17:32 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-10 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 17:32 Use i386/t-crtstuff on Solaris 8/9 x86 Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).