aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-11-21 16:44:02 +0000
committerNick Clifton <nickc@redhat.com>2022-11-21 16:44:02 +0000
commit1a7e622b82fa621ab505dd911bc30c1efcb4a9b0 (patch)
tree6736a37fd2c9c46a1de07f4b847087e11af15797 /binutils/doc
parentb0b23e06c3a2e3b92d6f12d99650c7d1cc5d939c (diff)
downloadgdb-1a7e622b82fa621ab505dd911bc30c1efcb4a9b0.zip
gdb-1a7e622b82fa621ab505dd911bc30c1efcb4a9b0.tar.gz
gdb-1a7e622b82fa621ab505dd911bc30c1efcb4a9b0.tar.bz2
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 <architecture>:<machine> syntax.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi6
1 files changed, 6 insertions, 0 deletions
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}.