RISC-V: Add description for -march-attr/-mno-arch-attr options in gas doc.

Message ID 1580958861-12668-1-git-send-email-nelson.chu@sifive.com
State New
Headers show
Series
  • RISC-V: Add description for -march-attr/-mno-arch-attr options in gas doc.
Related show

Commit Message

Nelson Chu Feb. 6, 2020, 3:14 a.m.
gas/
	* doc/c-riscv.texi: Add the doc entries for -march-attr/
	-mno-arch-attr command line options.
---
 gas/doc/c-riscv.texi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
2.7.4

Comments

Jim Wilson Feb. 20, 2020, 1:22 a.m. | #1
On Wed, Feb 5, 2020 at 7:14 PM Nelson Chu <nelson.chu@sifive.com> wrote:
>         gas/

>         * doc/c-riscv.texi: Add the doc entries for -march-attr/

>         -mno-arch-attr command line options.


Thanks.  Committed, and I got the author attribution right this time.

Jim
Nelson Chu Feb. 20, 2020, 6:36 a.m. | #2
On Thu, Feb 20, 2020 at 9:23 AM Jim Wilson <jimw@sifive.com> wrote:
> Thanks.  Committed, and I got the author attribution right this time.


That's great!  Thank you very much :)

Nelson

Patch

diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi
index 0976651..d45012a 100644
--- a/gas/doc/c-riscv.texi
+++ b/gas/doc/c-riscv.texi
@@ -59,6 +59,20 @@  required to materialize symbol addresses. (default)
 @item -mno-relax
 Don't do linker relaxations.
 
+@cindex @samp{-march-attr} option, RISC-V
+@item -march-attr
+Generate the default contents for the riscv elf attribute section if the
+.attribute directives are not set.  This section is used to record the
+information that a linker or runtime loader needs to check compatibility.
+These information include ISA string, stack alignment requirement, unaligned
+memory accesses, and the major, minor and revision version of privileged
+specification.
+
+@cindex @samp{-mno-arch-attr} option, RISC-V
+@item -mno-arch-attr
+Don't generate the default riscv elf attribute section if the .attribute
+directives are not set.
+
 @end table
 @c man end