aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-04-15 04:15:02 +0000
committerBob Wilson <bob.wilson@acm.org>2005-04-15 04:15:02 +0000
commit0e5cd789e193c6fc0ca95cc5ec270b489f814ed5 (patch)
treef967920f2a0e2ccb205331fc2188f182affff034 /gas/config
parent2e8b3a6111f4c47681ccbbfcc28e525c78160100 (diff)
downloadgdb-0e5cd789e193c6fc0ca95cc5ec270b489f814ed5.zip
gdb-0e5cd789e193c6fc0ca95cc5ec270b489f814ed5.tar.gz
gdb-0e5cd789e193c6fc0ca95cc5ec270b489f814ed5.tar.bz2
* config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
than the section alignment.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-xtensa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index cf71aad..4e7524d 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -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);