From: Ulrich Weigand Date: Wed, 11 Mar 2009 00:18:02 +0000 (+0000) Subject: * elf32-spu.c (find_function_stack_adjust): Handle sf instruction X-Git-Tag: sid-snapshot-20090401~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b175a76d11f555b5c34edfa6e4d014173d94972;p=external%2Fbinutils.git * elf32-spu.c (find_function_stack_adjust): Handle sf instruction used to update stack pointer. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2d043f7..eac0087 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-03-11 Ulrich Weigand + + * elf32-spu.c (find_function_stack_adjust): Handle sf instruction + used to update stack pointer. + 2009-03-07 John David Anglin PR binutils/9921 diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 3015cd6..115fa49 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -2133,6 +2133,19 @@ find_function_stack_adjust (asection *sec, return reg[rt]; } } + else if (buf[0] == 0x08 && (buf[1] & 0xe0) == 0 /* sf */) + { + int rb = ((buf[1] & 0x1f) << 2) | ((buf[2] & 0xc0) >> 6); + + reg[rt] = reg[rb] - reg[ra]; + if (rt == 1) + { + if (reg[rt] > 0) + break; + *sp_adjust = offset; + return reg[rt]; + } + } else if ((buf[0] & 0xfc) == 0x40 /* il, ilh, ilhu, ila */) { if (buf[0] >= 0x42 /* ila */)