diff options
author | Bob Wilson <bob.wilson@acm.org> | 2005-04-15 04:15:02 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2005-04-15 04:15:02 +0000 |
commit | 0e5cd789e193c6fc0ca95cc5ec270b489f814ed5 (patch) | |
tree | f967920f2a0e2ccb205331fc2188f182affff034 /gas | |
parent | 2e8b3a6111f4c47681ccbbfcc28e525c78160100 (diff) | |
download | gdb-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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-xtensa.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3f03aa8..3a9e3db 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,9 @@ 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> * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field. 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); |