This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] ELF: make .struct interact with .previous
On Fri, Apr 15, 2005 at 05:43:57PM -0700, H. J. Lu wrote:
> On Fri, Apr 15, 2005 at 05:36:47PM -0700, H. J. Lu wrote:
> > On Sat, Apr 16, 2005 at 07:30:16AM +0930, Alan Modra wrote:
> > > On Fri, Apr 15, 2005 at 11:37:18AM -0700, H. J. Lu wrote:
> > > > I don't think we should call md_cons_align for ABS section. This patch
> > > > fixes the failure.
> > >
> > > Why not? If you need to do something special for the absolute section,
> > > then md_cons_align itself should handle that.
> >
> > What special alignment can a backend can do for the absolute section?
> >
>
> There are
>
> @item md_cons_align
> @cindex md_cons_align
> You may define this macro to do any special alignment before a data
> allocation pseudo-op.
>
> But there is no data allocation involved for the absolute section.
The struct test is using a .short, which looks like a data allocation
pseudo-op to me. If .short should have different alignment when you
happen to use it in the absolute section, then md_cons_align should
reflect that fact.
--
Alan Modra
IBM OzLabs - Linux Technology Centre