2000-08-03 H.J. Lu (hjl@gnu.org)
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 3 Aug 2000 18:31:50 +0000 (18:31 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 3 Aug 2000 18:31:50 +0000 (18:31 +0000)
* ld-bootstrap/bootstrap.exp: Add strip.

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

index e362b38c0d69a1c4c2d5696af98b4dc8704a5844..6ec7b213cb6ba694aa429f9497f0ca4845095040 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-03  H.J. Lu  (hjl@gnu.org)
+
+       * ld-bootstrap/bootstrap.exp: Add strip.
+
 2000-07-24  H.J. Lu  (hjl@gnu.org)
 
        * ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of
index 0e4b820cb203e5fac055cbb95a42409704cb536d..a3f8a190230510cda814b0b24289da529b0f6ee7 100644 (file)
@@ -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
This page took 0.031087 seconds and 4 git commands to generate.