This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Add ALIGNOF
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 12 Jun 2007 19:24:21 +0930
- Subject: Re: Add ALIGNOF
- References: <466D088A.8050309@codesourcery.com>
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