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]
Other format: [Raw text]

Re: [PATCH] ELF: make .struct interact with .previous


On Mon, Apr 18, 2005 at 09:04:05AM +0930, Alan Modra wrote:
> 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.
> 

I guess it boilds down to what .short means in the absolute section.
Do any other assemblers support it? If yes, what do they do? If not,
gas should document what .short should do in the absolute section.


H.J.


H.J.


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