summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-bootstrap
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-08-03 18:31:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-08-03 18:31:50 +0000
commite1753d2c2817644c684399107dc598573a5a0c74 (patch)
tree77b305953692d37bbe6c1f2d113b30918f6860ab /ld/testsuite/ld-bootstrap
parent831662b3ca9573511b23218d917f919b46614afd (diff)
2000-08-03 H.J. Lu (hjl@gnu.org)
* ld-bootstrap/bootstrap.exp: Add strip.
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r--ld/testsuite/ld-bootstrap/bootstrap.exp21
1 files changed, 18 insertions, 3 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp
index 0e4b820cb2..a3f8a19023 100644
--- a/ld/testsuite/ld-bootstrap/bootstrap.exp
+++ b/ld/testsuite/ld-bootstrap/bootstrap.exp
@@ -31,12 +31,17 @@ 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 {"" "--static" "--traditional-format" "--no-keep-memory"} {
- if {"$flags" != ""} {
+foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} {
+ set do_strip "no"
+ if {"$flags" == "strip"} {
+ set testname "bootstrap with $flags"
+ set flags ""
+ set do_strip "yes"
+ } else { if {"$flags" != ""} {
set testname "bootstrap with $flags"
} else {
set testname "bootstrap"
- }
+ }}
# This test can only be run if we have the ld build directory,
# since we need the object files.
@@ -77,6 +82,16 @@ foreach flags {"" "--static" "--traditional-format" "--no-keep-memory"} {
continue
}
+ if {"$do_strip" == "yes"} {
+ verbose -log "$strip tmpdir/ld1"
+ catch "exec $strip tmpdir/ld1" exec_output
+ if ![string match "" $exec_output] then {
+ verbose -log "$exec_output"
+ fail $testname
+ continue
+ }
+ }
+
if ![ld_link tmpdir/ld1 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] {
fail $testname
continue