This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
test --relax in bootstrap
- From: Richard Henderson <rth at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 30 May 2002 14:40:56 -0700
- Subject: test --relax in bootstrap
I noticed that the alpha relaxation code has been broken
for a while. Once it gets fixed, this should prevent it
from happening again without being noticed.
r~
* ld-bootstrap/bootstrap.exp: Test --relax.
Index: testsuite/ld-bootstrap/bootstrap.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-bootstrap/bootstrap.exp,v
retrieving revision 1.8
diff -c -p -d -r1.8 bootstrap.exp
*** testsuite/ld-bootstrap/bootstrap.exp 14 Nov 2001 11:18:42 -0000 1.8
--- testsuite/ld-bootstrap/bootstrap.exp 30 May 2002 21:38:40 -0000
*************** if ![isnative] {
*** 32,38 ****
# really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a
# new ld, ld3. ld2 and ld3 should be identical.
! foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} {
set do_strip "no"
if {"$flags" == "strip"} {
set testname "bootstrap with $flags"
--- 32,39 ----
# really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a
# new ld, ld3. ld2 and ld3 should be identical.
! foreach flags {"" "strip" "--static" "--traditional-format"
! "--no-keep-memory" "--relax"} {
set do_strip "no"
if {"$flags" == "strip"} {
set testname "bootstrap with $flags"
*************** foreach flags {"" "strip" "--static" "--
*** 44,49 ****
--- 45,56 ----
set testname "bootstrap"
}}
+ # --static is meaningless and --relax is incompatible with -r.
+ set partial_flags "$flags"
+ if { "$flags" == "--static" || "$flags" == "--relax" } {
+ set partial_flags ""
+ }
+
# This test can only be run if we have the ld build directory,
# since we need the object files.
if {$ld != "$objdir/ld-new"} {
*************** foreach flags {"" "strip" "--static" "--
*** 58,64 ****
continue
}
! if ![ld_relocate $ld tmpdir/ld-partial.o "$flags $OFILES"] {
fail $testname
continue
}
--- 65,71 ----
continue
}
! if ![ld_relocate $ld tmpdir/ld-partial.o "$partial_flags $OFILES"] {
fail $testname
continue
}