This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Another fix for .p2align for ARM
- To: binutils at sources dot redhat dot com
- Subject: Another fix for .p2align for ARM
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 11 May 2001 12:00:25 +0100
Hi Guys,
Here is another patch for the ARM port of GAS to support the
.p2align directive. The patch fixes a bug in the previous patch
which was supposed to fix the problem of large alignments being used
to over blocks of memory.
Cheers
Nick
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.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.82
diff -p -r1.82 tc-arm.c
*** tc-arm.c 2001/05/06 10:11:33 1.82
--- tc-arm.c 2001/05/11 09:56:36
*************** arm_handle_align (fragP)
*** 8816,8822 ****
fix = 0;
if (bytes > MAX_MEM_FOR_RS_ALIGN_CODE)
! bytes = MAX_MEM_FOR_RS_ALIGN_CODE;
if (fragP->tc_frag_data)
{
--- 8816,8822 ----
fix = 0;
if (bytes > MAX_MEM_FOR_RS_ALIGN_CODE)
! bytes &= MAX_MEM_FOR_RS_ALIGN_CODE;
if (fragP->tc_frag_data)
{