stop bogus dwarf killing objdump

Nathan Sidwell nathan@codesourcery.com
Fri Feb 15 18:02:00 GMT 2008


I had the misfortune to have an executable with bogus dwarf information. 
Specifically one comp unit's length count was wrong, leading us to end up 
looking for the next compilation unit at the wrong offset.  (This problem was 
caused by a now fixed compiler bug).

bfd correctly emits a warning (in this case saying the DWARF version is 
unsupported).  However, it then proceeds to get very confused as it gets more 
and more lost wandering though the debug information, and ended up seg faulting.

This patch stops bfd trusting debug information after it sees an unparseable 
compilation unit. ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20080215/9c3b48f3/attachment.ksh>


More information about the Binutils mailing list