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 _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils