diff options
Diffstat (limited to 'binutils/testsuite/lib')
-rw-r--r-- | binutils/testsuite/lib/binutils-common.exp | 22 | ||||
-rw-r--r-- | binutils/testsuite/lib/utils-lib.exp | 4 |
2 files changed, 21 insertions, 5 deletions
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 4aa5c7c..08d57ae 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -105,6 +105,19 @@ proc is_pecoff_format {} { return 1 } +proc is_som_format {} { + if { ![istarget hppa*-*-*] || [istarget hppa*64*-*-*] } { + return 0; + } + if { [istarget *-*-osf*] \ + || [istarget {*-*-h[ip]ux*}] \ + || [istarget *-*-mpeix*] \ + || [istarget *-*-bsd*] } { + return 1; + } + return 0; +} + # True if the object format is known to be 64-bit ELF. # proc is_elf64 { binary_file } { @@ -945,7 +958,9 @@ proc run_dump_test { name {extra_options {}} } { set cmdret 1 } } else { - if { [istarget "hppa*-*-*"] && ![istarget "*-*-linux*" ] } { + if { [istarget "hppa*-*-*"] \ + && ![istarget "*-*-linux*"] \ + && ![istarget "*-*-netbsd*" ] } { set cmd "sed -e 's/^\[ \]*\.comm \\(\[^,\]*\\),\\(.*\\)/\\1 .comm \\2/' < $sourcefile > tmpdir/asm.s" send_log "$cmd\n" set cmdret [remote_exec host [concat sh -c [list "$cmd"]]] @@ -1328,9 +1343,8 @@ proc get_standard_section_names {} { if [istarget "rx-*-*"] { return { "P" "D_1" "B_1" } } - if [istarget "alpha*-*-*vms*"] { - # Double quote: for TCL and for sh. - return { "\\\$CODE\\\$" "\\\$DATA\\\$" "\\\$BSS\\\$" } + if { [istarget "alpha*-*-*vms*"] || [is_som_format] } { + return { {\$CODE\$} {\$DATA\$} {\$BSS\$} } } return } diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp index 45c1f03..ace30e6 100644 --- a/binutils/testsuite/lib/utils-lib.exp +++ b/binutils/testsuite/lib/utils-lib.exp @@ -117,7 +117,9 @@ proc default_binutils_assemble_flags { source object asflags } { # This is a hack in that it won't scale well if other targets need # similar transformations to assemble. We'll generalize the hack # if/when other targets need similar handling. - if { [istarget "hppa*-*-*"] && ![istarget "*-*-linux*" ] } then { + if { [istarget "hppa*-*-*"] \ + && ![istarget "*-*-linux*"] \ + && ![istarget "*-*-netbsd*" ] } { set sed_file $srcdir/config/hppa.sed send_log "sed -f $sed_file < $source > asm.s\n" verbose "sed -f $sed_file < $source > asm.s" |