From: Jie Zhang <jie.zhang@analog.com>
To: Binutils <binutils@sourceware.org>
Subject: [PATCH] Fix a Blackfin ld FAIL
Date: Fri, 11 Sep 2009 01:38:00 -0000 [thread overview]
Message-ID: <4AA9A9C3.8040708@analog.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 67 bytes --]
This patch fixes
FAIL: ld-elf/group9a
I'll commit it soon.
Jie
[-- Attachment #2: ld-bfin-fix-testsuite-group9a.diff --]
[-- Type: text/x-patch, Size: 813 bytes --]
* elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
NULL if `ht' is NULL.
Index: elf32-bfin.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-bfin.c,v
retrieving revision 1.42
diff -u -p -r1.42 elf32-bfin.c
--- elf32-bfin.c 4 Sep 2009 03:35:32 -0000 1.42
+++ elf32-bfin.c 11 Sep 2009 01:30:58 -0000
@@ -1950,8 +1950,12 @@ bfinfdpic_relocs_info_find (struct htab
const struct bfinfdpic_relocs_info *entry,
enum insert_option insert)
{
- struct bfinfdpic_relocs_info **loc =
- (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
+ struct bfinfdpic_relocs_info **loc;
+
+ if (!ht)
+ return NULL;
+
+ loc = (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
if (! loc)
return NULL;
next reply other threads:[~2009-09-11 1:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 1:38 Jie Zhang [this message]
2009-09-11 3:40 ` Jie Zhang
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=4AA9A9C3.8040708@analog.com \
--to=jie.zhang@analog.com \
--cc=binutils@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).