diff options
author | Alan Modra <amodra@gmail.com> | 2001-07-24 11:07:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-07-24 11:07:16 +0000 |
commit | 992c450de818e9063b013fde2da43db163cc1966 (patch) | |
tree | ec7b46dd7b719083801ac7bf97734060e16da0a3 /ld/testsuite/lib | |
parent | 2f45a6e05b297e75c9e7ec29ef57dd7183738b3d (diff) | |
download | gdb-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.exp | 6 |
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] |