public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net
To: gdb-testers@sourceware.org
Subject: [binutils-gdb] The assembler only supports 32-bit stabs. So set sh_entsize unconditionally to 12.
Date: Thu, 30 Apr 2020 03:14:25 -0400	[thread overview]
Message-ID: <34ca55313b8e6c0f6354f2dc5a3a35e38c32ae82@gdb-build> (raw)

*** TEST RESULTS FOR COMMIT 34ca55313b8e6c0f6354f2dc5a3a35e38c32ae82 ***

commit 34ca55313b8e6c0f6354f2dc5a3a35e38c32ae82
Author:     Fangrui Song <maskray@google.com>
AuthorDate: Tue Apr 14 15:21:50 2020 +0100
Commit:     Nick Clifton <nickc@redhat.com>
CommitDate: Tue Apr 14 15:21:50 2020 +0100

    The assembler only supports 32-bit stabs. So set sh_entsize unconditionally to 12.
    
            PR gas/25768
            * elf.c (assign_section_numbers): Always set .stab sh_entsize to
            12.

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0ef3b2faef..b89aced0e7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-14  Fangrui Song  <maskray@google.com>
+
+	PR gas/25768
+	* elf.c (assign_section_numbers): Always set .stab sh_entsize to
+	12.
+
 2020-04-14  Stephen Casner  <casner@acm.org>
 
 	PR ld/25677
diff --git a/bfd/elf.c b/bfd/elf.c
index 1780074f5a..3d2eee9ea8 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3998,9 +3998,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
 		  elf_section_data (s)->this_hdr.sh_link = d->this_idx;
 
 		  /* This is a .stab section.  */
-		  if (elf_section_data (s)->this_hdr.sh_entsize == 0)
-		    elf_section_data (s)->this_hdr.sh_entsize
-		      = 4 + 2 * bfd_get_arch_size (abfd) / 8;
+		  elf_section_data (s)->this_hdr.sh_entsize = 12;
 		}
 	    }
 	  break;


             reply	other threads:[~2020-04-30  7:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30  7:14 gdb-buildbot [this message]
2020-04-30  7:14 ` Failures on Fedora-x86_64-cc-with-index, branch master gdb-buildbot
2020-04-30  7:17 ` Failures on Fedora-i686, " gdb-buildbot
2020-04-30  7:44 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2020-04-30  7:49 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-04-30  8:23 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2020-04-30  8:37 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2020-05-01 18:49 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

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=34ca55313b8e6c0f6354f2dc5a3a35e38c32ae82@gdb-build \
    --to=gdb-buildbot@sergiodj.net \
    --cc=gdb-testers@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).