When truncating an aligned block, ensure that the low order bits of the
authorNick Clifton <nickc@redhat.com>
Fri, 11 May 2001 10:01:41 +0000 (10:01 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 May 2001 10:01:41 +0000 (10:01 +0000)
alignment are preserved.

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

index 272347e8cc9b28e0b1d0b12a91b935f08af3eda3..1e6d8c8fd1baffb042e33ef2194013ea68d9f19d 100644 (file)
@@ -1,3 +1,9 @@
+2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/tc-arm.c (arm_handle_align): When truncating an aligned 
+       block, ensure that the low order bits of the alignment are
+       preserved.
+
 2001-05-10  Alan Modra  <amodra@one.net.au>
 
        * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
index 59e8d71a44e5418e6df921f560e3063f1905ba9c..b394faaa866a78a1e1108d7588543f25acafd9d4 100644 (file)
@@ -8816,7 +8816,7 @@ arm_handle_align (fragP)
   fix = 0;
   
   if (bytes > MAX_MEM_FOR_RS_ALIGN_CODE)
-    bytes = MAX_MEM_FOR_RS_ALIGN_CODE;
+    bytes &= MAX_MEM_FOR_RS_ALIGN_CODE;
   
   if (fragP->tc_frag_data)
     {