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]

Re: ARM: Add support for aligning with no-ops in code section.


Hi Richard,

> +   if (max > 31)
> +     as_fatal (_("alignments in code section > 32 not supported."));
> 
> So which is it to be?  >31 or >32 ?

It is "> 32", but the test is correct, since this is the maximum
number of padding bytes to insert in order to obtain the desired
alignment.  So for an alignment of 32 you will have to insert at most
31 bytes... :-)

(Well, always assuming that you are trying to align something, and not
just skip to the next 32 byte boundary for some weird reason.)

Cheers
        Nick


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