This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another fix for .p2align for ARM


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)
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]