From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id 8A5BD3858C29; Fri, 22 Dec 2023 08:37:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A5BD3858C29 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] RISC-V: drop .bss override X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: 3e4a511bee874d73f9f749cc8cf3bc748b4d47b5 X-Git-Newrev: 0495b25221b3f6b3b26a7ea898a8f0c5a712e43a Message-Id: <20231222083746.8A5BD3858C29@sourceware.org> Date: Fri, 22 Dec 2023 08:37:46 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2023 08:37:46 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0495b25221b3= f6b3b26a7ea898a8f0c5a712e43a commit 0495b25221b3f6b3b26a7ea898a8f0c5a712e43a Author: Jan Beulich Date: Fri Dec 22 09:35:02 2023 +0100 RISC-V: drop .bss override =20 It doesn't look to be a good idea to override the custom handler that ELF has; afaict doing so broke .previous, and a sub-section specifier wasn't accepted either. Diff: --- gas/config/tc-riscv.c | 10 ---------- gas/doc/c-riscv.texi | 4 ---- 2 files changed, 14 deletions(-) diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index b902c6ba2c1..bb5ea04e662 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -4586,15 +4586,6 @@ s_dtprel (int bytes) demand_empty_rest_of_line (); } =20 -/* Handle the .bss pseudo-op. */ - -static void -s_bss (int ignore ATTRIBUTE_UNUSED) -{ - subseg_set (bss_section, 0); - demand_empty_rest_of_line (); -} - static void riscv_make_nops (char *buf, bfd_vma bytes) { @@ -5325,7 +5316,6 @@ static const pseudo_typeS riscv_pseudo_table[] =3D {"dword", cons, 8}, {"dtprelword", s_dtprel, 4}, {"dtpreldword", s_dtprel, 8}, - {"bss", s_bss, 0}, {"uleb128", s_riscv_leb128, 0}, {"sleb128", s_riscv_leb128, 1}, {"insn", s_riscv_insn, 0}, diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi index f15526e2d15..bb98e4d5965 100644 --- a/gas/doc/c-riscv.texi +++ b/gas/doc/c-riscv.texi @@ -138,10 +138,6 @@ Emits a DTP-relative word (or double-word) at the curr= ent position. This is meant to be used by the compiler in shared libraries for DWARF debug info = for thread local variables. =20 -@cindex BSS directive -@item .bss -Sets the current section to the BSS section. - @cindex LEB128 directives @item .uleb128 @var{value} @itemx .sleb128 @var{value}