public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix a Blackfin ld FAIL
@ 2009-09-11  1:38 Jie Zhang
  2009-09-11  3:40 ` Jie Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Jie Zhang @ 2009-09-11  1:38 UTC (permalink / raw)
  To: Binutils

[-- 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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix a Blackfin ld FAIL
  2009-09-11  1:38 [PATCH] Fix a Blackfin ld FAIL Jie Zhang
@ 2009-09-11  3:40 ` Jie Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Jie Zhang @ 2009-09-11  3:40 UTC (permalink / raw)
  To: Binutils; +Cc: Jie Zhang

Jie Zhang wrote:
> This patch fixes
> 
> FAIL: ld-elf/group9a
> 
> I'll commit it soon.
> 
Done. I just found this patch also fixes

FAIL: Check --gc-section/-r/-e
FAIL: Check --gc-section/-r/-u

for Blackfin bfin-linux-uclibc target.


Jie

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-11  3:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-11  1:38 [PATCH] Fix a Blackfin ld FAIL Jie Zhang
2009-09-11  3:40 ` Jie Zhang

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).