* config/default.exp (ld_nm): Add "nmflags" arg.
authorAlan Modra <amodra@gmail.com>
Tue, 24 Jul 2001 11:07:16 +0000 (11:07 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Jul 2001 11:07:16 +0000 (11:07 +0000)
* lib/ld-lib.exp (default_ld_nm): Likewise.
* ld-empic/empic.exp: Adjust call to ld_nm.
* ld-scripts/defined.exp: Likewise.
* ld-scripts/script.exp: Likewise.
* ld-scripts/sizeof.exp: Likewise.
* ld-selective/selective.exp: Likewise.
* ld-sh/sh.exp: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-empic/empic.exp
ld/testsuite/ld-scripts/defined.exp
ld/testsuite/ld-scripts/script.exp
ld/testsuite/ld-scripts/sizeof.exp
ld/testsuite/ld-selective/selective.exp
ld/testsuite/ld-sh/sh.exp
ld/testsuite/lib/ld-lib.exp

index 139d8d9d0d57d8bdca66fdef1c9fa57142c5a0e4..e36213f41ce8fbc67a21a77eb8278515e96d3948 100644 (file)
@@ -1,3 +1,14 @@
+2001-07-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/default.exp (ld_nm): Add "nmflags" arg.
+       * lib/ld-lib.exp (default_ld_nm): Likewise.
+       * ld-empic/empic.exp: Adjust call to ld_nm.
+       * ld-scripts/defined.exp: Likewise.
+       * ld-scripts/script.exp: Likewise.
+       * ld-scripts/sizeof.exp: Likewise.
+       * ld-selective/selective.exp: Likewise.
+       * ld-sh/sh.exp: Likewise.
+
 2001-07-12  H.J. Lu  <hjl@gnu.org>
 
        * ld-selective/selective.exp: Mark selective1, selective2,
index 9363c39dbc07376a07c1fefd119e7ac1f3da7ca2..7892951bc81d7232f8640373d337702d9195c520 100644 (file)
@@ -158,8 +158,8 @@ proc ld_assemble { as source object } {
 # ld_nm
 #      run nm on a file
 #
-proc ld_nm { nm object } {
-       default_ld_nm $nm $object
+proc ld_nm { nm nmflags object } {
+       default_ld_nm $nm $nmflags $object
 }
 
 #
index 2046970d1e30c269f9f2ac5e8fb819ebcaf385b8..f72b1f36c1c5d23a33dbddc473cf694fd96e115f 100644 (file)
@@ -60,7 +60,7 @@ if ![ld_simple_link $ld tmpdir/relax "--relax -T $srcdir/$subdir/relax.t tmpdir/
     # computes the start of the function.
 
     # Get the symbol table.
-    if ![ld_nm $nm tmpdir/relax] {
+    if ![ld_nm $nm "" tmpdir/relax] {
        unresolved $testname
        return
     }
index eb416df3f91454e4ea7173729576983eb31cb6ae..075bf568ac6966466453a880de45e4b590b79710 100644 (file)
@@ -28,7 +28,7 @@ if ![ld_assemble $as $srcdir/$subdir/defined.s tmpdir/def.o] {
 if ![ld_simple_link $ld tmpdir/def "-T $srcdir/$subdir/defined.t tmpdir/def.o"] {
     fail $testname
 } else {
-    if ![ld_nm $nm tmpdir/def] {
+    if ![ld_nm $nm "" tmpdir/def] {
        unresolved $testname
     } else {
        if {![info exists nm_output(value1)] \
index d81085119f0caa392793c0a8b33999d244493573..a7f6bade1ad2de099357ae42b133f18f4b8b9b48 100644 (file)
@@ -29,7 +29,7 @@ proc check_script { } {
     global testname
     global nm_output
 
-    if ![ld_nm $nm tmpdir/script] {
+    if ![ld_nm $nm "" tmpdir/script] {
        unresolved $testname
     } else {
        if {![info exists nm_output(text_start)] \
index 4b7b024481fb41c99be008c6901749c9012fc01d..5bb957a9505de3abe536f0c1ee3b1fbb0aa44c80 100644 (file)
@@ -30,7 +30,7 @@ if ![ld_simple_link $ld tmpdir/sizeof "-T $srcdir/$subdir/sizeof.t tmpdir/sizeof
     return
 }
 
-if ![ld_nm $nm tmpdir/sizeof] {
+if ![ld_nm $nm "" tmpdir/sizeof] {
     unresolved $testname
     return
 }
index 27ff2d800fdd788041f2de75e90918fe6d68b3a2..7e9d3b133a53d58bcde241b3b9132853c65ccb23 100644 (file)
@@ -106,7 +106,7 @@ foreach testitem $seltests {
        continue
     }
 
-    if ![ld_nm $nm $ldfile] {
+    if ![ld_nm $nm "" $ldfile] {
        unresolved $testname
        continue
     }
index 437f7ce588b14ce93d6f9fc6fc8cf8e53bd1ba78..cfbc02c5cc452028d9fdb7be09baa35c822be394 100644 (file)
@@ -32,7 +32,7 @@ if ![ld_assemble $as "-relax $srcdir/$subdir/sh1.s" tmpdir/sh1.o] {
 } else { if ![ld_simple_link $ld tmpdir/sh1 "-relax tmpdir/sh1.o"] {
     fail $testsimple
 } else {
-    if ![ld_nm $nm tmpdir/sh1] {
+    if ![ld_nm $nm "" tmpdir/sh1] {
        unresolved $testsimple
     } else {
        if {![info exists nm_output(bar)] \
index bd8d211a347dce9430ab7e3724ca868c2d995630..6c35bb23dc2d0bacda57f3b5fde9e36169dba4e2 100644 (file)
@@ -283,7 +283,7 @@ proc default_ld_assemble { as source object } {
 # default_ld_nm
 #      run nm on a file, putting the result in the array nm_output
 #
-proc default_ld_nm { nm object } {
+proc default_ld_nm { nm nmflags object } {
     global NMFLAGS
     global nm_output
     global host_triplet
@@ -299,9 +299,9 @@ proc default_ld_nm { nm object } {
 
     if ![info exists NMFLAGS] { set NMFLAGS "" }
 
-    verbose -log "$nm $NMFLAGS $object >tmpdir/nm.out"
+    verbose -log "$nm $NMFLAGS $nmflags $object >tmpdir/nm.out"
 
-    catch "exec $nm $NMFLAGS $object >tmpdir/nm.out" exec_output
+    catch "exec $nm $NMFLAGS $nmflags $object >tmpdir/nm.out" exec_output
     set exec_output [prune_warnings $exec_output]
     if [string match "" $exec_output] then {
        set file [open tmpdir/nm.out r]