This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] another discarded DWARF issue
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 16 Oct 2007 10:02:17 +0930
- Subject: Re: [PATCH] another discarded DWARF issue
- References: <4706C2BD.5050102@tensilica.com> <4713ECDD.40703@tensilica.com>
On Mon, Oct 15, 2007 at 03:42:37PM -0700, Bob Wilson wrote:
> - if (kept != NULL && sec->size != kept->size)
> + /* The kept section may have been relaxed; compare its original size. */
> + if (kept != NULL
> + && (elf_section_data (sec)->this_hdr.sh_size
> + != elf_section_data (kept)->this_hdr.sh_size))
What if "sec" is non-ELF? (I'm not dead certain this can happen, but
I think it can..)
--
Alan Modra
Australia Development Lab, IBM