From: Jakub Jelinek <jakub@redhat.com>
To: binutils@sources.redhat.com
Subject: [PATCH] SHF_MERGE fix
Date: Mon, 04 Mar 2002 07:17:00 -0000 [thread overview]
Message-ID: <20020304161650.O2204@sunsite.ms.mff.cuni.cz> (raw)
Hi!
If GC removes all input sections with the same name, SHF_STRINGS setting
and sh_entsize, we would segfault...
Ok to commit?
2002-03-04 Jakub Jelinek <jakub@redhat.com>
* merge.c (_bfd_merge_sections): Don't segfault if there
is nothing to merge due to GC.
--- bfd/merge.c.jj Mon Jan 14 17:53:10 2002
+++ bfd/merge.c Mon Mar 4 16:20:55 2002
@@ -804,6 +804,9 @@ _bfd_merge_sections (abfd, xsinfo, remov
if (secinfo)
continue;
+ if (sinfo->htab->first == NULL)
+ continue;
+
if (sinfo->htab->strings)
merge_strings (sinfo);
else
Jakub
next reply other threads:[~2002-03-04 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 7:17 Jakub Jelinek [this message]
2002-03-04 15:46 ` Alan Modra
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=20020304161650.O2204@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=binutils@sources.redhat.com \
/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).