bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld segfault -> NULL pointer dereference in bfd/elf32-ppc.c


From: Alan Modra
Subject: Re: ld segfault -> NULL pointer dereference in bfd/elf32-ppc.c
Date: Tue, 8 Dec 2009 10:08:42 +1030
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Mon, Dec 07, 2009 at 10:30:15AM +0100, Adrien Demarez wrote:
> Hello,
>
> I experience an ld segfault when trying to compile QT4.6 in  
> OpenEmbedded/Angstrom for the PPC platform (MPC8313 more precisely). The 
> following patch (against the CVS version) solves this : after having a 
> look at the core file, the return value from find_plt_ent() is not 
> checked in several points, leading to a NULL pointer dereference in some 
> situations.

Which one of these calls to find_plt_ent returned NULL?  None of them
should, so it indicates we have a bug somewhere else.  Please open a
bug report at
http://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
preferably with a self-contained testcase (since this is a ld bug, we
want the inputs to ld, ie. object files, libraries, and any ld
scripts), or failing that, more information on how to reproduce
the problem including such details as the exact version of your
compiler and libraries.

> N.B.: I still have error messages such as "Error: Unrecognized opcode:  
> `slwi'", but at least ld does no longer segfault. Does anyone know how  
> to solve this unrecognized opcode issue ?

slwi should be recognized, unless you have disabled it by using
one of the assembler's -m options for a cpu without this instruction,
or done the same with a .machine directive.

-- 
Alan Modra
Australia Development Lab, IBM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]