[PATCH] another discarded DWARF issue

Alan Modra amodra@bigpond.net.au
Tue Oct 16 01:15:00 GMT 2007


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



More information about the Binutils mailing list