From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by sourceware.org (Postfix) with ESMTPS id CCE953858402 for ; Fri, 25 Feb 2022 00:59:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CCE953858402 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-vs1-xe33.google.com with SMTP id j3so4000598vsi.7 for ; Thu, 24 Feb 2022 16:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V36Y04T/5FoxTFhuBlvmY1Tz+Sf3nmPHxi8C8Qb741A=; b=Yw0REyVWx8KYFS5U/oj0W/unRGFCBur6AuXiiQmNPZIfpxwr1B7WtU+5u5rJJdijI8 inzEKr1s/HQaLjq6CQJsWCSL+bYif49ppTaVVN9zIqDWvJsGRIaY8Dh22CncJagLTOsB lLqfYwGVzuHsfNqMn4zppQCw/3OWWnc6xO+o9QzGL6/1KgRmqnu89Wf61h79h4WDJDvO PSxerOx56yHpDDmm6+6m48hAR4TomGpbWGLq6psUBeBnTqLKFxVwtwFzcBWrF810F2xt IcJdYH+bdthmoT81nEcVM+0tm5Jo+/N4k7xh2GgLf3nLQbL/5FxIuZ4kx7iMnFC2/NiR dT5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V36Y04T/5FoxTFhuBlvmY1Tz+Sf3nmPHxi8C8Qb741A=; b=OJehqFL9slkKb3jouzOarPCgSeJJpQGChTn8FdL3YGQV484UVCB90IeFt2l3iBUfZ3 BAQlGarpuLTV8D8Lf8mGen1lVfZUPHxXcScgMIhKBJS7JRP16CiGS7r4PUbT6s/MKqlS u5SbhNZsPySnlCDyISE7022WRdICYl0JNNhM2M4rNO5dpPSvbU7jfiXFAejX5CAewcBY Y7ZAM8d716R8d1VgSukMYEqwxOh/EkIkyYAOv18kDBSACJOLRfD+1iZ22YyY7TYAFBOa 3G1Z9cd0RMn7RfTy04UhUbJ68clvW+0bPcn0XFO2V6J2cKywIqctzSb7QJ6CXf/mAD9W FKDQ== X-Gm-Message-State: AOAM5331O/HtLtB/KbPod0QD39s4ICn1v8XPG1OKlXsK3gb0gKV85p1x Bs/9rIdbVB0dym/OunNP7+eVVnXm6wDiSVHyXJv0pA== X-Google-Smtp-Source: ABdhPJy0YUXf1aytPozf+sLgDxKUa5x7O8/E60+GJSyBlItZrKjwcQet0FftsdqG4LOldREkW35YfiaZiqspmfXhWes= X-Received: by 2002:a67:d216:0:b0:31b:4f6f:e6fd with SMTP id y22-20020a67d216000000b0031b4f6fe6fdmr2508823vsi.14.1645750784271; Thu, 24 Feb 2022 16:59:44 -0800 (PST) MIME-Version: 1.0 References: <20220224183046.13473-1-palmer@rivosinc.com> In-Reply-To: <20220224183046.13473-1-palmer@rivosinc.com> From: Nelson Chu Date: Fri, 25 Feb 2022 08:59:35 +0800 Message-ID: Subject: Re: [PATCH v1] binutils/doc: Document the RISC-V -M options To: Palmer Dabbelt Cc: Binutils Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2022 00:59:46 -0000 On Fri, Feb 25, 2022 at 2:32 AM Palmer Dabbelt wrote: > > These have been around for quite a while now, but we forgot to actually > document them. LGTM, thanks! Nelson > * doc/binutils.texi (-M): New section on RISC-V options. > > Signed-off-by: Palmer Dabbelt > --- > binutils/doc/binutils.texi | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi > index 288974be386..bfb5a6199ca 100644 > --- a/binutils/doc/binutils.texi > +++ b/binutils/doc/binutils.texi > @@ -2693,6 +2693,19 @@ 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 how instructions are disassembled. This > +option can be provided multiple times, each time with a comma separated list > +containing one or more of the following entries: > + > +@table @code > +@item no-aliases > +Avoid printing pseudo instruction mnemonics. > + > +@item numeric > +Use numeric register names (ie, x1) instead of ABI register names (ie, ra) when > +printing instructions. > +@end table > + > 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 > -- > 2.34.1 >