* config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
authorBob Wilson <bob.wilson@acm.org>
Fri, 15 Apr 2005 04:15:02 +0000 (04:15 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 15 Apr 2005 04:15:02 +0000 (04:15 +0000)
        than the section alignment.

gas/ChangeLog
gas/config/tc-xtensa.c

index 3f03aa82b454218a1f2adf06b2fc358be38e3b47..3a9e3dbe726363a4387b362bf2923ce7a1394ee6 100644 (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>
 
index cf71aad1b30715e69683c45a1bc47fc649d5a7f6..4e7524dc58872be7037f6f626485ca341c430cdc 100644 (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);