projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b36cd
)
* plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
author
Alan Modra
<amodra@gmail.com>
Thu, 4 Nov 2010 12:44:54 +0000
(12:44 +0000)
committer
Alan Modra
<amodra@gmail.com>
Thu, 4 Nov 2010 12:44:54 +0000
(12:44 +0000)
ld/ChangeLog
patch
|
blob
|
history
ld/plugin.c
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index b6cada28aadfa0127992057aa3388b23402e7ef7..2b037e420bfd3ced1ba77c03dd3e1fa3fa97f441 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-1,3
+1,7
@@
+2010-11-04 Alan Modra <amodra@gmail.com>
+
+ * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
+
2010-11-03 Nick Clifton <nickc@redhat.com>
PR ld/12001
diff --git
a/ld/plugin.c
b/ld/plugin.c
index f03932c096733dde2bf56121c1fa07150696dd6a..1e280e4cd21c9aac2a16a4cc5dd070bd60cae3f7 100644
(file)
--- a/
ld/plugin.c
+++ b/
ld/plugin.c
@@
-245,7
+245,11
@@
plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
bfd_boolean
is_ir_dummy_bfd (const bfd *abfd)
{
- size_t namlen = strlen (abfd->filename);
+ size_t namlen;
+
+ if (abfd == NULL)
+ return FALSE;
+ namlen = strlen (abfd->filename);
if (namlen < IRONLY_SUFFIX_LEN)
return FALSE;
return !strcmp (abfd->filename + namlen - IRONLY_SUFFIX_LEN, IRONLY_SUFFIX);