This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bug in bfd/dwarf2.c recently
- From: Nick Clifton <nickc at redhat dot com>
- To: Marty Leisner <leisner at rochester dot rr dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 27 Dec 2005 16:13:37 +0000
- Subject: Re: bug in bfd/dwarf2.c recently
- References: <200512050234.jB52YADj003490@dell.home>
Hi Marty,
I used the October and 12/04 cvs snapshots and came across this problem:
This seemed to fix the coredumping issue:
+ && each_func->name
&& addr >= arange->low
&& addr < arange->high
&& strcmp (name, each_func->name) == 0
Thanks - I have checked this patch in together with this ChangeLog entry:
bfd/ChangeLog
2005-12-27 Marty Leisner <leisner@rochester.rr.com>
* dwarf2.c (lookup_symbol_in_function_table): Check for a function
name before passing it to strcmp.
If you have the time, we would very much appreciate a test case that can
reproduce this bug, so that we can add an entry to the linker's testsuite.
Cheers
Nick