Patch: minor som.c fix for --enable-targets=all

Alan Modra amodra@gmail.com
Thu Jan 24 00:21:00 GMT 2013


On Wed, Jan 23, 2013 at 01:16:39PM -0700, Tom Tromey wrote:
> I configure binutils using --enable-targets=all.
> 
> If I invoke objdump on a SOM object, I get a crash:
> 
> barimba. ~/gnu/baseline-gdb/build/binutils/objdump -h /tmp/arrayidx 
> Segmentation fault (core dumped)

Backtrace?  (Or send me the binary.)  I'm wondering exactly how this
occurs, and if som_is_space() needs similar treatment.

> The bug here is that som_is_subspace doesn't handle the case where
> som_section_data returns NULL.
> 
> This patch fixes the crash for me.
> Ok?
> 
> Tom
> 
> >From bb0f0921237e93961daf096dacfec8c5154ca428 Mon Sep 17 00:00:00 2001

And also wondering if this is a really old patch, and whether it is
actually needed on current binutils..

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list