diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-30 21:39:41 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-05-30 21:39:41 +0000 |
commit | 0085b5a8ab186588ad7ae8baba6e82794837fbaf (patch) | |
tree | 98c9df61097fe92b8bb794c0754e27e799865146 /ld | |
parent | def2e0dd82c4b17f3e9a07f7fd130a42c5789f65 (diff) | |
download | gdb-0085b5a8ab186588ad7ae8baba6e82794837fbaf.zip gdb-0085b5a8ab186588ad7ae8baba6e82794837fbaf.tar.gz gdb-0085b5a8ab186588ad7ae8baba6e82794837fbaf.tar.bz2 |
* ld-bootstrap/bootstrap.exp: Test --relax.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index cedfdab..b8c3de6 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-05-30 Richard Henderson <rth@redhat.com> + + * ld-bootstrap/bootstrap.exp: Test --relax. + 2002-05-28 Hans-Peter Nilsson <hp@axis.com> * ld-cris/libdso-2.d: Tweak for combreloc now default on. diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 69d3088..69ed6ab 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -32,7 +32,8 @@ if ![isnative] { # 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"} { +foreach flags {"" "strip" "--static" "--traditional-format" + "--no-keep-memory" "--relax"} { set do_strip "no" if {"$flags" == "strip"} { set testname "bootstrap with $flags" @@ -44,6 +45,12 @@ foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} 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"} { @@ -58,7 +65,7 @@ foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} continue } - if ![ld_relocate $ld tmpdir/ld-partial.o "$flags $OFILES"] { + if ![ld_relocate $ld tmpdir/ld-partial.o "$partial_flags $OFILES"] { fail $testname continue } |