* config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
than the section alignment.
This commit is contained in:
parent
2e8b3a6111
commit
0e5cd789e1
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue