diff -r cb10ec12dc45 -r 375cb23d95ba tools/summarise_gcc_errors.pl --- a/tools/summarise_gcc_errors.pl Wed Jul 07 15:43:49 2010 +0100 +++ b/tools/summarise_gcc_errors.pl Fri Jul 16 11:44:48 2010 +0100 @@ -483,9 +483,11 @@ } $last_elffile = $elffile; } + my $length = length($symbol); foreach my $line (@last_objdump) { - if (index($line,$symbol) >= 0) + chomp $line; + if (substr($line,-$length) eq $symbol) { push @instances, $line; }