public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] nios2: fix .text/.data interaction with .previous
Date: Fri, 22 Dec 2023 08:37:56 +0000 (GMT)	[thread overview]
Message-ID: <20231222083756.AB2383858C74@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f91e91d85ecb0ae9a7dbd4fef761bf6169f7919c

commit f91e91d85ecb0ae9a7dbd4fef761bf6169f7919c
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Dec 22 09:36:13 2023 +0100

    nios2: fix .text/.data interaction with .previous
    
    Just like obj_elf_section() is called for .section, obj_elf_{text,data}()
    need calling for .text/.data.

Diff:
---
 gas/config/tc-nios2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c
index 999890ecfce..364b6df987c 100644
--- a/gas/config/tc-nios2.c
+++ b/gas/config/tc-nios2.c
@@ -507,7 +507,7 @@ s_nios2_align (int ignore ATTRIBUTE_UNUSED)
 static void
 s_nios2_text (int i)
 {
-  s_text (i);
+  obj_elf_text (i);
   nios2_last_label = NULL;
   nios2_current_align = 0;
   nios2_current_align_seg = now_seg;
@@ -518,7 +518,7 @@ s_nios2_text (int i)
 static void
 s_nios2_data (int i)
 {
-  s_data (i);
+  obj_elf_data (i);
   nios2_last_label = NULL;
   nios2_current_align = 0;
   nios2_current_align_seg = now_seg;

                 reply	other threads:[~2023-12-22  8:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231222083756.AB2383858C74@sourceware.org \
    --to=jbeulich@sourceware.org \
    --cc=bfd-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).