From 15f65ae41209a87410a3b2734985db016e4e8905 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 11 May 2001 10:01:41 +0000 Subject: [PATCH] When truncating an aligned block, ensure that the low order bits of the alignment are preserved. --- gas/ChangeLog | 6 ++++++ gas/config/tc-arm.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 272347e8cc9..1e6d8c8fd1b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-05-11 Nick Clifton + + * 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 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 59e8d71a44e..b394faaa866 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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) { -- 2.30.2