This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch: minor som.c fix for --enable-targets=all
- From: Alan Modra <amodra at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Binutils Development <binutils at sourceware dot org>
- Date: Thu, 24 Jan 2013 10:51:26 +1030
- Subject: Re: Patch: minor som.c fix for --enable-targets=all
- References: <87d2wvvemw.fsf@fleche.redhat.com>
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