OSDN Git Service

2011-12-03 David Daney <david.daney@cavium.com>
authordaney <daney>
Sat, 3 Dec 2011 17:13:01 +0000 (17:13 +0000)
committerdaney <daney>
Sat, 3 Dec 2011 17:13:01 +0000 (17:13 +0000)
* ld-bootstrap/bootstrap.exp: Use consistent flags for final link
in ia64 and mips cases.

ld/testsuite/ChangeLog
ld/testsuite/ld-bootstrap/bootstrap.exp

index 9722fa0..9323b33 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-03 David Daney <david.daney@cavium.com>
+
+       * ld-bootstrap/bootstrap.exp: Use consistent flags for final link
+       in ia64 and mips cases.
+
 2011-11-29  Maciej W. Rozycki  <macro@codesourcery.com>
 
        PR ld/10144
index d0563de..1893873 100644 (file)
@@ -155,7 +155,7 @@ foreach flags {"" "strip" "--static" "--traditional-format"
            # 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"] {
+           if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY $extralibs"] {
                fail $testname
                continue
            }
@@ -165,7 +165,7 @@ foreach flags {"" "strip" "--static" "--traditional-format"
            # 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"] {
+           if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY $extralibs"] {
                fail $testname
                continue
            }