sh: Fix bug calculating the end of the FDE instructions
authorMatt Fleming <matt@console-pimps.org>
Thu, 20 Aug 2009 18:42:34 +0000 (19:42 +0100)
committerMatt Fleming <matt@console-pimps.org>
Fri, 21 Aug 2009 12:04:10 +0000 (13:04 +0100)
commit5480675dc60c7dda7146e506981b2b40a775cc1e
tree71f0f32d67e7d13d484ff1f3cd9af85259d288ac
parentfe98dd31eb9fe055703e0171134b4d074558d4e9
sh: Fix bug calculating the end of the FDE instructions

The 'end' member of struct dwarf_fde denotes one byte past the end of
the CFA instruction stream for an FDE. The value of 'end' was being
calcualted incorrectly, it was being set too high. This resulted in
dwarf_cfa_execute_insns() interpreting data past the end of valid
instructions, thus causing all sorts of weird crashes.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
arch/sh/kernel/dwarf.c