This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix a Blackfin ld FAIL
- From: Jie Zhang <jie dot zhang at analog dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 11 Sep 2009 09:37:07 +0800
- Subject: [PATCH] Fix a Blackfin ld FAIL
This patch fixes
FAIL: ld-elf/group9a
I'll commit it soon.
Jie
* 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;