From 1a7e622b82fa621ab505dd911bc30c1efcb4a9b0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 21 Nov 2022 16:44:02 +0000 Subject: Fix ARM and AArch64 assembler tests to work in a multi-arch environment. PR 29764 gas * testsuite/gas/arm/cpu-cortex-a76ae.d: Add arm prefix to the -m option passed to objdump. * testsuite/gas/arm/cpu-cortex-a77.d: Likewise. * testsuite/gas/aarch64/cpu-cortex-a76ae.d: Add aarch64 prefix to the -m option passed to objdump. * testsuite/gas/aarch64/cpu-cortex-a77.d: Likewise. bfd * cpu-arm.c (scan): Accept machine names prefixed with "arm:". * cpu-aarch64.c (scan): Accept machine names prefixed with "aarch64:". bin * doc/binutils.texi (objdump): Note that the -m option supports the : syntax. --- binutils/ChangeLog | 6 ++++++ binutils/doc/binutils.texi | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b6bb667..dfa5f1f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2022-11-21 Nick Clifton + + PR 29764 + * doc/binutils.texi (objdump): Note that the -m option supports + the : syntax. + 2022-11-04 Nick Clifton * README-how-to-make-a-release: Add instructions for uploading the diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 483b72f..6024301 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -2526,6 +2526,12 @@ can be useful when disassembling object files which do not describe architecture information, such as S-records. You can list the available architectures with the @option{-i} option. +For most architectures it is possible to supply an architecture +name and a machine name, separated by a colon. For example +@samp{foo:bar} would refer to the @samp{bar} machine type in the +@samp{foo} architecture. This can be helpful if objdump has been +configured to support multiple architectures. + If the target is an ARM architecture then this switch has an additional effect. It restricts the disassembly to only those instructions supported by the architecture specified by @var{machine}. -- cgit v1.1