binutils-gdb/binutils/testsuite/binutils-all
Maciej W. Rozycki 3abf975826 MIPS/binutils/testsuite: Correct mips.exp test ABI/emul/endian arrangement
The binutils testsuite supports involving LD in processing test cases
and with the MIPS target that has the same issues the LD testsuite does.

So to support LD in the MIPS part of the binutils testsuite similarly
to commit 86b24e15c4 ("MIPS/LD/testsuite: Correct comm-data.exp test
ABI/emul/endian arrangement") update the mips.exp test script to:

- correctly select emulations for targets using non-traditional MIPS
  emulations,

- correctly select ABIs for targets that do not support all of them,

- use the default endianness selection where possible to benefit targets
  that support only one,

- simplify test invocation by providing ABI-specific `run_dump_test'
  wrappers, specifically `run_dump_test_o32', `run_dump_test_n32' and
  `run_dump_test_n64', which remove the need to use conditionals across
  the Expect script or to repeat ABI-specific GAS and LD flags with each
  invocation,

borrowing changes from commit 78da84f994 ("MIPS/LD/testsuite: Correct
mips-elf.exp test ABI/emul/endian arrangement").

As a side effect this disables o32 ABI testing for targets that are not
supposed to support them and do not with LD, but still have such support
with BFD and GAS due to our inflexibility in configuration.  Ultimately
we ought to support having o32 completely disabled.

	binutils/
	* testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
	(run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
	procedures.
	(has_newabi): Remove variable.
	(has_abi, abi_asflags, abi_ldflags): New associative array
	variables.
	(irixemul): New variable.
	Replace `run_dump_test' calls where applicable throughout with
	`run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
	as appropriate.  Use `noarch' for tests that require their own
	architecture setting.
	* testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
	* testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
	* testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
	* testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
	* testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
	* testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
	* testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
	* testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
	* testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
	GAS flags.
	* testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
	* testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
	* testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
	* testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
	* testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
	* testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
	* testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
2020-07-26 14:43:21 +01:00
..
aarch64 AArch64: add GAS support for UDF instruction 2020-04-30 15:47:30 +01:00
arc arc: Detect usage of illegal double register pairs 2020-07-14 14:51:15 +03:00
arm [PATCH v2] binutils: arm: Fix disassembly of conditional VDUPs. 2020-04-17 17:25:19 +01:00
bfin Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
hppa Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
i386 Remove x86 NaCl target support 2020-06-30 08:56:14 -07:00
m68k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
mips MIPS/binutils/testsuite: Correct mips.exp test ABI/emul/endian arrangement 2020-07-26 14:43:21 +01:00
nfp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
vax Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
wasm32 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
windres Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags. 2020-07-09 13:45:01 +01:00
x86-64 Remove x86 NaCl target support 2020-06-30 08:56:14 -07:00
add-empty-section.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
add-section.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
add-symbol.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
alias-2.def
alias.def
ar.exp Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
bintest.s Enhance objdump's --disassemble switch so that it can now take an optional parameter, specifying the starting symbol for disassembly. Disassembly will continue from this symbol up to the next symbol. 2018-11-07 18:07:36 +00:00
common-1.s
common-1a.d
common-1b.d
common-1c.d
common-1d.d
common-1e.d
common-1f.d
common-2.s
common-2a.d
common-2b.d
common-2c.d
common-2d.d
common-2e.d
common-2f.d
compress.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
copy-1.d
copy-1.s
copy-2.d Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
copy-3.d Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
copy-4.d Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
copy-5.d Prevent the --keep-global-symbol and --globalize-symbol options from being used together. 2018-10-11 11:38:10 +01:00
copy-6.d Add testcase for PR/24065. 2019-01-08 14:58:03 +00:00
copytest.s
cxxfilt.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
data-sections.s
debug_str.d
debug_str.s
debuginfod.exp The procedure to find an unused port for the debuginfod tests is susceptible to a TOCTOU failure. Change port finding in order to avoid this. Also use 'expect' to interact with the server process since we now use the server's output to determine whether a port is in use. 2020-03-02 12:46:47 +00:00
debuglink.s Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
disasm.s Update objdump's --disassemble=<symbol> feature so that if <symbol> is a function, the entire function will be disassembled, regardless of the presence of interveening symbols. 2019-01-17 15:29:43 +00:00
dlltool.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dumptest.s
dw2-1.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw2-1.W
dw2-2.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw2-3.rS Handle ELF compressed header alignment correctly by setting up the section alignment correctly for the Elf32_Chdr or Elf64_Chdr type and respect the ch_addralign field when decompressing the section data. 2018-11-27 11:59:10 +00:00
dw2-3.rt Handle ELF compressed header alignment correctly by setting up the section alignment correctly for the Elf32_Chdr or Elf64_Chdr type and respect the ch_addralign field when decompressing the section data. 2018-11-27 11:59:10 +00:00
dw2-3.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw2-3.W
dw2-3gabi.W
dw2-compressed.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw2-decodedline-1.S
dw2-decodedline.S
dw2-empty.S
dw2-ranges.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw2-ranges.W
dw4.s Fix discrepancies in nm's --line-number output by adding support for the DW_AT_specification DWARF Attttribute. 2020-03-19 16:55:13 +00:00
dw5.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dw5.W [readelf] Fix end_seq entry in -wL. Specifically stop the display of a line number and is_statement/has-view fields for the End of Sequence operator, as these have no meaning. 2020-07-10 11:25:44 +01:00
dwarf-attributes.S Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
dwarf-attributes.W Improve the DWARF decoder's ability to describe the DW_AT_discr_list attribute. 2019-08-27 16:28:55 +01:00
dwo.s Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elfedit-1.d Remove x86 NaCl target support 2020-06-30 08:56:14 -07:00
elfedit-2.d
elfedit-3.d
elfedit-4.d
elfedit-5.d
elfedit.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
empty
empty-file
empty.s
exclude-1.s
exclude-1a.d
exclude-1b.d
fastcall.def
group-2.s
group-3.s
group-4.s
group-5.d Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
group-5.s
group-6.d
group-6.s
group-7.s
group-7a.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
group-7b.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
group-7c.d Remove run_dump_test support for objcopy as a dump program 2018-09-15 16:24:18 +09:30
group.s
keep-section-1.d Implement objcopy/strip --keep-section=<sectionpattern> 2019-11-04 11:55:28 +10:30
keep-section-2.d Implement objcopy/strip --keep-section=<sectionpattern> 2019-11-04 11:55:28 +10:30
libdw2-compressed.out
libdw2-compressedgabi.out
libdw2.out
link-order.s
linkdebug.s Add support for debuginfod to the binutils (disable by default, enabled via a configure time option). 2020-01-09 13:19:20 +00:00
localize-hidden-1.d
localize-hidden-1.s
localize-hidden-2.d
localize-hidden-2.s
locview-1.s
locview-2.s
mbind1.s
needed-by-reloc.s
nm-1.s
nm-elf-1.s
nm-ver.s
nm.exp Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
note-1.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
note-2-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3.32.s
note-4-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-5.d
note-5.s
note-6-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
objcopy.exp XCOFF binutils testsuite fix 2020-07-07 18:26:33 +09:30
objdump.exp binutils objdump.exp remote_file typo 2020-06-23 11:02:56 +09:30
objdump.s
objdump.W
objdump.Wk
objdump.WK2 Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
objdump.WK3 Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
objdump.WL [readelf] Fix end_seq entry in -wL. Specifically stop the display of a line number and is_statement/has-view fields for the End of Sequence operator, as these have no meaning. 2020-07-10 11:25:44 +01:00
only-section-01.d
pr18374.s
pr19020.in
pr19020a.d
pr19020b.d
pr19547.c
pr23633.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
pr23633.list Add a testcase for PR binutils/23633 2018-09-13 09:09:15 -07:00
pr23633.s Add a testcase for PR binutils/23633 2018-09-13 09:09:15 -07:00
pr25543.d Restore readelf's string dump to previous behaviour where newlines were caused line breaks. 2020-03-02 10:02:02 +00:00
pr25543.s Restore readelf's string dump to previous behaviour where newlines were caused line breaks. 2020-03-02 10:02:02 +00:00
pr25662-pdp11.s Fix unresolved test in binutils for pdp11. 2020-06-04 23:41:57 -07:00
pr25662.ld Add testcase for PR 25662 invalid sh_offset for section 2020-03-27 10:54:26 +00:00
pr25662.s Add testcase for PR 25662 invalid sh_offset for section 2020-03-27 10:54:26 +00:00
pr26112.o.bz2 Add a testcase for PR binutils/26112 2020-06-23 06:52:41 -07:00
pr26112.r Add a testcase for PR binutils/26112 2020-06-23 06:52:41 -07:00
pr26160.dwp.bz2 Add a testcase for PR binutils/26160 2020-06-23 09:20:28 -07:00
pr26160.r Add a testcase for PR binutils/26160 2020-06-23 09:20:28 -07:00
readelf.exp Fix nds32*-elf XPASS readelf -wiaoRlL dw5 2020-06-30 13:32:04 +09:30
readelf.h
readelf.k
readelf.k2 Extend readelf and objdump so that they will display and follow multiple links to separate debug information files. 2019-02-22 10:36:24 +00:00
readelf.locview-1
readelf.locview-2
readelf.n
readelf.pr18374
readelf.r
readelf.r-64
readelf.s Enhance objdump's --disassemble switch so that it can now take an optional parameter, specifying the starting symbol for disassembly. Disassembly will continue from this symbol up to the next symbol. 2018-11-07 18:07:36 +00:00
readelf.s-64 binutils: Adjusted tests for .note.gnu.property section 2018-08-31 04:38:25 -07:00
readelf.ss Enhance objdump's --disassemble switch so that it can now take an optional parameter, specifying the starting symbol for disassembly. Disassembly will continue from this symbol up to the next symbol. 2018-11-07 18:07:36 +00:00
readelf.ss-64 Enhance objdump's --disassemble switch so that it can now take an optional parameter, specifying the starting symbol for disassembly. Disassembly will continue from this symbol up to the next symbol. 2018-11-07 18:07:36 +00:00
readelf.ss-mips [MIPS] PR gas/14798: Limit IRIX5 specific default typing to IRIX targets 2019-05-20 11:08:23 -07:00
readelf.ss-tmips [MIPS] PR gas/14798: Limit IRIX5 specific default typing to IRIX targets 2019-05-20 11:08:23 -07:00
readelf.wa
readelf.wKis Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
readelf.z
remove-relocs-01.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-01.s
remove-relocs-02.d
remove-relocs-03.d
remove-relocs-04.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-05.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-06.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-07.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-07.s Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-relocs-08.d Support objcopy --remove-section=.relaFOO 2018-09-17 23:31:18 +09:30
remove-section-01.d
set-section-alignment.d Use is_xcoff_format in binutils testsuite 2020-07-07 18:26:33 +09:30
size.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
strings-1.bin Enhance the strings program so that it can display multibyte strings. 2018-11-09 12:48:23 +00:00
strings.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
strip-1.d
strip-2.d Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
strip-3.d RISC-V: Support ELF attribute for gas and readelf. 2019-01-16 13:14:59 -08:00
strip-4.d
strip-5.d Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
strip-6.d
strip-7.d Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
strip-8.d
strip-9.d Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
strip-10.d
strip-11.d binutils run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
strip-12.d
strip-12.s
strip-13.d binutils run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
strip-13mips64.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-13rel.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-13rela.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-14.d binutils run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
strip-14mips64.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-14rel.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-14rela.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-15.d
strip-15mips64.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-15rel.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
strip-15rela.s Adjust some strip testcases to silence h8300 warnings 2018-09-17 23:16:48 +09:30
symbols-1.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
symbols-2.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
symbols-3.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
symbols-4.d Consolidate run_dump_test 2018-09-15 16:56:55 +09:30
symbols.s
testprog.c
testranges-ia64.d
testranges-ia64.s
testranges.d binutils run_dump_test rename not-target and not-skip 2018-09-15 16:24:18 +09:30
testranges.s
unique.s
unknown.s
update-1.s
update-2.s
update-3.s
update-4.s
update-section.exp [PATCH] objcopy: Allow --dump-section to dump an empty SEC_HAS_CONTENTS section 2020-05-04 17:04:25 +01:00
verilog-1.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-2.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-4.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-8.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilogtest.s Add missing verilogtest.s file. 2019-05-14 16:16:56 +01:00
version.def
version.s
z.s
zero-sec.r Add a warning if an emtpty SHT_REL, SHT_RELA or SHT_PROGBITS section is detected. Disable all warnings unless the (new) lint mode is enabled. 2020-04-29 16:01:40 +01:00
zero-sec.s Add a warning if an emtpty SHT_REL, SHT_RELA or SHT_PROGBITS section is detected. Disable all warnings unless the (new) lint mode is enabled. 2020-04-29 16:01:40 +01:00