[binutils-gdb] RISC-V: Add NEWS entries for the privileged spec deprecation
Kito Cheng
kito@sourceware.org
Tue Nov 3 14:50:28 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=10ae2343ac322dab390dbe6d83e14d065a381e07
commit 10ae2343ac322dab390dbe6d83e14d065a381e07
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Tue Oct 27 10:27:48 2026 +0800
RISC-V: Add NEWS entries for the privileged spec deprecation
Describe the deprecated privileged spec options and attributes in the
gas, binutils and ld NEWS files.
Diff:
---
binutils/NEWS | 4 ++++
gas/NEWS | 6 ++++++
ld/NEWS | 3 +++
3 files changed, 13 insertions(+)
diff --git a/binutils/NEWS b/binutils/NEWS
index 507ed33406c..2a8bd84f65c 100644
--- a/binutils/NEWS
+++ b/binutils/NEWS
@@ -4,6 +4,10 @@
to disassemble for in place of the one the object records. It is useful for
an object that records none, such as a core file or a raw binary.
+* The RISC-V disassembler option -M priv-spec is deprecated and has no
+ effect, and the privileged elf attributes are ignored. Use binutils 2.47
+ or earlier to select another privileged spec version.
+
Changes in 2.47:
* The s390 32-bit target (s390-*) is deprecated and planned for removal in a
diff --git a/gas/NEWS b/gas/NEWS
index 6b625b1345e..cc1ef03a999 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -16,6 +16,12 @@
* Add support for RISC-V standard extensions:
ziccamoc 1.0, zama16b v1.0, sspmp v1.0, sspmpen v1.0 and smpmpdeleg v1.0.
+* The RISC-V option -mpriv-spec, the configure option --with-priv-spec and
+ the privileged elf attributes set by .attribute are deprecated and have no
+ effect. The RISC-V assembler no longer emits the privileged elf
+ attributes, which are deprecated by the RISC-V psABI. Use binutils 2.47
+ or earlier to select another privileged spec version.
+
Changes in 2.47:
* New command line option --reloc-section-sym=[all|internal|none]
diff --git a/ld/NEWS b/ld/NEWS
index b8292ec754f..c6438422396 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -31,6 +31,9 @@
-z zicfiss-report=[none|warning|error] to report inputs without them.
These follow the RISC-V toolchain conventions.
+* The RISC-V linker ignores the privileged spec elf attributes, which are
+ deprecated by the RISC-V psABI, and no longer outputs them.
+
Changes in 2.47:
* Add a linker optimization level of zero. Using "-O 0" on the linker command
More information about the Binutils-cvs
mailing list