aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2020-08-27 15:25:03 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2020-08-27 15:25:03 +0000
commit9e7ed8b080afa19fff25244913594f95af282657 (patch)
treee7f674d3c99c6e7a3c5b8ccab397a68d039e8810 /binutils/testsuite/lib/utils-lib.exp
parentCorrects the broken line number incrementation in the Windows resource parser (diff)
downloadbinutils-gdb-9e7ed8b080afa19fff25244913594f95af282657.tar.gz
binutils-gdb-9e7ed8b080afa19fff25244913594f95af282657.tar.bz2
binutils-gdb-9e7ed8b080afa19fff25244913594f95af282657.zip
Fix PR binutils/26356 on hppa*-*-hpux*.
PR 26356 * som.c (som_bfd_copy_private_section_data): Issue error when a subspace is specified without its containing space. * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add "-j $PRIVATE$" to command on hppa*-*-hpux*. * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing dollar-sign quotes before quoting. Do this prior to generating log output.
Diffstat (limited to 'binutils/testsuite/lib/utils-lib.exp')
-rw-r--r--binutils/testsuite/lib/utils-lib.exp11
1 files changed, 7 insertions, 4 deletions
diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp
index 1bb5e616e4b..56ac0cda320 100644
--- a/binutils/testsuite/lib/utils-lib.exp
+++ b/binutils/testsuite/lib/utils-lib.exp
@@ -80,13 +80,16 @@ proc default_binutils_run { prog progargs } {
regsub -- "-j \\.bss" $progargs "-j [lindex $sect_names 2]" progargs
}
+ # Gotta quote dollar-signs because they get mangled by the
+ # shell otherwise. Since get_standard_section_names returns
+ # quoted section names, we first remove the original quote
+ # and then requote.
+ regsub -all {\\\$} "$progargs" {$} progargs
+ regsub -all {\$} "$progargs" {\$} progargs
+
send_log "$prog $progargs\n"
verbose "$prog $progargs"
- # Gotta quote dollar-signs because they get mangled by the
- # shell otherwise.
- regsub -all "\\$" "$progargs" "\\$" progargs
-
set state [remote_exec host $prog $progargs]
set binutils_run_status [lindex $state 0]
set exec_output [prune_warnings [lindex $state 1]]