* config/tc-xtensa.c (get_aligned_diff): Handle target_size larger

than the section alignment.
This commit is contained in:
Bob Wilson 2005-04-15 04:15:02 +00:00
parent 2e8b3a6111
commit 0e5cd789e1
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-14 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
than the section alignment.
2005-04-14 Bob Wilson <bob.wilson@acm.org>
H.J. Lu <hongjiu.lu@intel.com>

View File

@ -8190,6 +8190,9 @@ get_aligned_diff (fragS *fragP, addressT address, offsetT *max_diff)
target_size = 3;
align_power = branch_align_power (now_seg);
branch_align = 1 << align_power;
/* Don't count on the section alignment being as large as the target. */
if (target_size > branch_align)
target_size = branch_align;
opt_diff = get_text_align_fill_size (address, align_power,
target_size, FALSE, FALSE);