mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
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.
This commit is contained in:
parent
fb3dc21336
commit
efd0ed580e
@ -1,3 +1,8 @@
|
||||
2020-07-07 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/lib/binutils-common.exp (is_xcoff_format): New.
|
||||
* testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
|
||||
|
||||
2020-07-06 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* po/bg.po: Updated Bulgarian translation.
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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 } {
|
||||
|
Loading…
Reference in New Issue
Block a user