This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Add ALIGNOF


On Mon, Jun 11, 2007 at 09:32:10AM +0100, Nathan Sidwell wrote:
> +	    {
> +	      bfd_vma val;
> +	      
> +	      val = tree->type.node_code == SIZEOF
> +		? os->bfd_section->size
> +		: (bfd_vma)1 << os->bfd_section->alignment_power;
> +	      
> +	      new_abs (val / opb);
> +	    }

I don't think you should be dividing by opb for ALIGNOF.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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