diff options
author | Alan Modra <amodra@gmail.com> | 2020-07-07 10:23:06 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-07-07 18:26:33 +0930 |
commit | efd0ed580ed9f84ae095b592e5ae686e62eb9a3e (patch) | |
tree | 41e04943cb9f9f7465d9bb5a0fefe7ab888654a6 /binutils/testsuite | |
parent | fb3dc2133648119386c9262892f782c29683f920 (diff) | |
download | gdb-efd0ed580ed9f84ae095b592e5ae686e62eb9a3e.zip gdb-efd0ed580ed9f84ae095b592e5ae686e62eb9a3e.tar.gz gdb-efd0ed580ed9f84ae095b592e5ae686e62eb9a3e.tar.bz2 |
XCOFF binutils testsuite fix
Avoid an UNRESOLVED test due to "Error: the XCOFF file format does not
support arbitrary sections".
* testsuite/lib/binutils-common.exp (is_xcoff_format): New.
* testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 5 | ||||
-rw-r--r-- | binutils/testsuite/lib/binutils-common.exp | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index dd74860..f857003 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -1354,4 +1354,7 @@ if { [istarget pdp11-*-*] } { set src "pr25662.s" } -objcopy_test "pr25662" $src executable "" "-T$srcdir/$subdir/pr25662.ld" +#xcoff doesn't support arbitrary sections +if { ![is_xcoff_format] } { + objcopy_test "pr25662" $src executable "" "-T$srcdir/$subdir/pr25662.ld" +} diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 491cd8d..948b910 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -121,6 +121,16 @@ proc is_som_format {} { return 0; } +proc is_xcoff_format {} { + if { [istarget rs6000-*-*] + || [istarget powerpc*-*-aix*] + || [istarget powerpc*-*-beos*] + || [istarget powerpc*-*-macos*] } { + return 1; + } + return 0; +} + # True if the object format is known to be 64-bit ELF. # proc is_elf64 { binary_file } { |