public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Fix ld bootstrap test for ia64
@ 2001-09-29 21:25 H . J . Lu
  0 siblings, 0 replies; 7+ messages in thread
From: H . J . Lu @ 2001-09-29 21:25 UTC (permalink / raw)
  To: binutils

It has been a while for me to check binutils on ia64. It looks like
we have to always rebuild tmpdir/ld2 with tmpdir/ld3 on ia64 like
Linux/mips. Could someone please verify it on ia64?


H.J.
----
2001-09-29  H.J. Lu  <hjl@gnu.org>

	* ld-bootstrap/bootstrap.exp: Always rebuild tmpdir/ld2 with
	tmpdir/ld3 on ia64.

Index: ld-bootstrap/bootstrap.exp
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-bootstrap/bootstrap.exp,v
retrieving revision 1.5
diff -u -p -r1.5 bootstrap.exp
--- ld-bootstrap/bootstrap.exp	2001/06/06 22:10:34	1.5
+++ ld-bootstrap/bootstrap.exp	2001/09/30 04:17:20
@@ -104,26 +104,15 @@ foreach flags {"" "strip" "--static" "--
 	continue
     }
 
-    if {"$flags" == "--static"} {
-	if { [istarget ia64-*-elf*]
-	     || [istarget ia64-*-linux*] } {
-	    # On ia64, tmpdir/ld2 != tmpdir/ld3 is normal since they are
-	    # generated by different linkers, tmpdir/ld1 and tmpdir/ld2.
-	    # So we rebuild tmpdir/ld2 with tmpdir/ld3.
-	    if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] {
-		fail $testname
-		continue
-	    }
-	}
-    } else {
-	if { [istarget mips*-*-linux*] } {
-	    # On Linux/mips, tmpdir/ld2 != tmpdir/ld3 is normal since
-	    # they are generated by different linkers, tmpdir/ld1 and
-	    # tmpdir/ld2. So we rebuild tmpdir/ld2 with tmpdir/ld3.
-	    if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] {
-		fail $testname
-		continue
-	    }
+    if { [istarget ia64-*-elf*]
+	 || [istarget ia64-*-linux*]
+	 || [istarget mips*-*-linux*] } {
+	# On ia64 and Linux/mips, tmpdir/ld2 != tmpdir/ld3 is normal
+	# since they are generated by different linkers, tmpdir/ld1
+	# and tmpdir/ld2. So we rebuild tmpdir/ld2 with tmpdir/ld3.
+	if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] {
+	    fail $testname
+	    continue
 	}
     }
 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: PATCH: Fix ld bootstrap test for ia64
@ 2001-10-01 17:13 Jim Wilson
  2001-10-01 21:43 ` H . J . Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Wilson @ 2001-10-01 17:13 UTC (permalink / raw)
  To: binutils; +Cc: H. J. Lu

I have RHL 7.2 beta (roswell2) on my IA-64 machine.  I built binutils using
the system compiler, ran the testsuite, and the ld-bootstrap tests worked.
I built binutils using a gcc 3.1 snapshot, ran the testsuite, and the
ld-bootstrap tests worked.  While doing this, I accidentally ran make
check using the gcc 3.1 snapshot against a objdir compiled with the system
compiler.  The ld-bootstrap tests failed in that case, but I don't think
it is reasonable to expect that to work, because these two compilers are
not compatible.

Next, I tried a server running RHL 7.1 beta (wolverine) with the roswell
glibc RPM installed over the top of the wolverine glibc.  On my first try,
the ld-bootstrap tests failed.  I started to look at this, and then noticed
that there was a random gcc snapshot on my path, along with a binutils
snapshot and a bunch of other stuff.  I tried again using the system compiler,
and this time the ld-bootstrap tests succeeded.

My suspicion here is that we should no longer have ld bootstrap testsuite
failures, provided that your system is recent enough, and that you haven't
replaced system tools/libraries.  If your system is even more recent, then
ld bootstrap should still work even if you have replaced some system tools.
We used to have trouble because we were still doing development work on ld,
but it has been pretty stable ever since the 2.11 release.

Jim

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-02 21:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-29 21:25 PATCH: Fix ld bootstrap test for ia64 H . J . Lu
2001-10-01 17:13 Jim Wilson
2001-10-01 21:43 ` H . J . Lu
2001-10-02 10:11   ` H . J . Lu
2001-10-02 19:13     ` Jim Wilson
2001-10-02 20:00       ` Alan Modra
2001-10-02 21:07         ` Jim Wilson

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).