2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
PR ld/15146 ld/ * plugin.c (plugin_notice): Add null check before dereferencing pointer.
This commit is contained in:
parent
897aea504d
commit
46fed7f7c2
|
@ -1,3 +1,9 @@
|
|||
2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
PR ld/15146
|
||||
* plugin.c (plugin_notice): Add null check before dereferencing
|
||||
pointer.
|
||||
|
||||
2013-02-19 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* emultempl/elf32.em (emit_note_gnu_build_id): New static var.
|
||||
|
|
|
@ -997,7 +997,8 @@ plugin_notice (struct bfd_link_info *info,
|
|||
/* Replace the undefined dummy bfd with the real one. */
|
||||
if ((h->type == bfd_link_hash_undefined
|
||||
|| h->type == bfd_link_hash_undefweak)
|
||||
&& (h->u.undef.abfd->flags & BFD_PLUGIN) != 0)
|
||||
&& (h->u.undef.abfd == NULL
|
||||
|| (h->u.undef.abfd->flags & BFD_PLUGIN) != 0))
|
||||
h->u.undef.abfd = abfd;
|
||||
h->non_ir_ref = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue