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

Submitted by Rainer Orth on Dec. 10, 2010, 5:02 p.m.


Message ID yddmxodef2k.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Dec. 10, 2010, 5:02 p.m.
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.


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

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

Patch hide | download patch | download mbox

diff -r 293f3445f8cc libgcc/
--- a/libgcc/	Fri Dec 10 17:41:34 2010 +0100
+++ b/libgcc/	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
   cat > conftest.s <<EOF
 	.section	.eh_frame,"a",@unwind
 	.zero	4