binutils-gdb/binutils/testsuite/binutils-all/copy-2.d
Alan Modra 5a2296ac1b Use is_xcoff_format in binutils testsuite
and restrict some other tests using is_*_format.

	* testsuite/binutils-all/ar.exp: Use is_xcoff_format.
	* testsuite/binutils-all/nm.exp: Likewise.
	* testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
	* testsuite/binutils-all/copy-3.d: Run only for elf targets.
	* testsuite/binutils-all/set-section-alignment.d: Likewise.
	* testsuite/binutils-all/copy-4.d: Don't run for xcoff.
2020-07-07 18:26:33 +09:30

18 lines
397 B
D

#PROG: objcopy
#objdump: -h
#objcopy: --set-section-flags foo=contents,alloc,load,code
#name: copy with setting section flags 2
#source: copytest.s
# Many formats do not allow arbitrary section flags, just run for ELF and PE.
#target: [is_elf_format] [is_pecoff_format]
#xfail: h8300-*-*
.*: +file format .*
Sections:
Idx.*
#...
[0-9]* foo.*
CONTENTS, ALLOC, LOAD, CODE
#...