This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: linker segfaults after PR ld/15146 fix
- From: Alan Modra <amodra at gmail dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: hongjiu dot lu at intel dot com, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 19 Feb 2013 14:14:31 +1030
- Subject: Re: linker segfaults after PR ld/15146 fix
- References: <5122F044.7050707@codesourcery.com>
On Mon, Feb 18, 2013 at 08:23:48PM -0700, Sandra Loosemore wrote:
> * plugin.c (plugin_notice): Add null check before dereferencing
> pointer.
This is OK.
> 1000c1000,1001
> < && (h->u.undef.abfd->flags & BFD_PLUGIN) != 0)
> ---
> > && (h->u.undef.abfd == NULL
> > || (h->u.undef.abfd->flags & BFD_PLUGIN) != 0))
--
Alan Modra
Australia Development Lab, IBM