RISC-V: Add description for -march-attr/-mno-arch-attr options in gas doc.
[deliverable/binutils-gdb.git] / gas / doc / c-riscv.texi
index 09766511651c2b06a308eb7b7d2690b2c6ca2ee0..739670fafe32e0daff7b6dc49ad4120f69f30bc5 100644 (file)
@@ -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.
+This information includes 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
 
This page took 0.035109 seconds and 4 git commands to generate.