From: Richard Henderson <rth@redhat.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: "H. J. Lu" <hjl@lucon.org>, binutils@sources.redhat.com
Subject: Re: [PATCH] Re: IA64 linker is broken
Date: Tue, 18 Mar 2003 18:57:00 -0000 [thread overview]
Message-ID: <20030318185450.GA6763@redhat.com> (raw)
In-Reply-To: <20030318162551.A1717@sunsite.ms.mff.cuni.cz>
On Tue, Mar 18, 2003 at 04:25:51PM +0100, Jakub Jelinek wrote:
> * elfxx-ia64.c (elfNN_ia64_relax_section): Only call
> get_dyn_sym_info for R_IA64_LTOFF22X relocations against local
> symbols. Reported by H.J.Lu <hjl@gnu.org>.
No. First, this is also used for LDXMOV, second, I think the
better fix is in get_dyn_sym_info.
r~
* elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
local symbols that have no dyninfo.
Index: elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.71
diff -u -p -u -r1.71 elfxx-ia64.c
--- elfxx-ia64.c 3 Mar 2003 23:19:19 -0000 1.71
+++ elfxx-ia64.c 18 Mar 2003 18:55:01 -0000
@@ -1965,7 +1965,11 @@ get_dyn_sym_info (ia64_info, h, abfd, re
struct elfNN_ia64_local_hash_entry *loc_h;
loc_h = get_local_sym_hash (ia64_info, abfd, rel, create);
- BFD_ASSERT (loc_h);
+ if (!loc_h)
+ {
+ BFD_ASSERT (!create);
+ return NULL;
+ }
pp = &loc_h->info;
}
prev parent reply other threads:[~2003-03-18 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-04 20:13 H. J. Lu
2003-03-18 15:25 ` [PATCH] " Jakub Jelinek
2003-03-18 18:57 ` Richard Henderson [this message]
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=20030318185450.GA6763@redhat.com \
--to=rth@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=hjl@lucon.org \
--cc=jakub@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).