[PATCH] Add documentation on objdump's -M option for RISC-V target

Urs Thuermann urs@isnogud.escape.de
Mon May 3 16:43:35 GMT 2021

Andreas Schwab <schwab@linux-m68k.org> writes:

> How about using the same descriptions as the --help output?

OK (In fact, I had already done that for priv-spec).  Also changed the
order to match the --help output.

diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 9578c083ef8..d591908deb7 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -2671,6 +2671,20 @@ rather than names, for the selected types of registers.
 You can list the available values of @var{ABI} and @var{ARCH} using
 the @option{--help} option.
+For RISC-V, this option controls the printing of instruction mnemonic
+names and register names in disassembly.
+@item numeric
+Print numeric register names, rather than ABI names.
+@item no-aliases
+Disassemble only into canonical instructions, rather than into
+@item priv-spec
+Print the CSR according to the chosen privilege spec (1.9, 1.9.1,
+1.10, 1.11).
 For VAX, you can specify function entry addresses with @option{-M
 entry:0xf00ba}.  You can use this multiple times to properly
 disassemble VAX binary files that don't contain symbol tables (like


More information about the Binutils mailing list