aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-07-24 11:07:16 +0000
committerAlan Modra <amodra@gmail.com>2001-07-24 11:07:16 +0000
commit992c450de818e9063b013fde2da43db163cc1966 (patch)
treeec7b46dd7b719083801ac7bf97734060e16da0a3 /ld/testsuite/lib
parent2f45a6e05b297e75c9e7ec29ef57dd7183738b3d (diff)
downloadgdb-992c450de818e9063b013fde2da43db163cc1966.zip
gdb-992c450de818e9063b013fde2da43db163cc1966.tar.gz
gdb-992c450de818e9063b013fde2da43db163cc1966.tar.bz2
* 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.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index bd8d211..6c35bb2 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -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]