aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-08-28 18:43:03 +0000
committerBob Wilson <bob.wilson@acm.org>2007-08-28 18:43:03 +0000
commit5c5d6806e819d85f3916dabcca027912dd26f84c (patch)
tree58c17049b60768ea9f147a59f2cb39ed073782ec /bfd/elf32-xtensa.c
parentd9a5e5e5c91086a8dd66174a7ebff52c00efe79e (diff)
downloadgdb-5c5d6806e819d85f3916dabcca027912dd26f84c.zip
gdb-5c5d6806e819d85f3916dabcca027912dd26f84c.tar.gz
gdb-5c5d6806e819d85f3916dabcca027912dd26f84c.tar.bz2
2007-08-28 David Heine <dlheine@tensilica.com>
* elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when narrowing instructions.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 2531df5..2ade49f 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -6926,6 +6926,8 @@ compute_ebb_actions (ebb_constraint *ebb_table)
bad_alignment = FALSE;
break;
}
+ if (new_action->do_action)
+ removed_bytes += new_action->removed_bytes;
}
if (!bad_alignment)
{