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: Should the assembler pad a section to its alignment?


On Mon, Aug 19, 2013 at 10:27:10AM -0700, Roland McGrath wrote:
> On Fri, Aug 16, 2013 at 6:40 PM, Alan Modra <amodra@gmail.com> wrote:
> > SUB_SEGMENT_ALIGN is what you're looking for.
> 
> Thanks.  Now I see how the difference comes about, and how to change the
> code to make it uniform.  I still have no idea what rationale there ever
> might have been for the current behavior.
> 
> Moreover, nobody has offered any opinions on whether it ought to change
> and, if so, in which direction.  Am I the only one who cares either way?

I'd suggest changing it just for nacl.  Always padding sections at the
end of a segment isn't ideal as it effectively aligns the next segment
to the current segment's alignment.  This might mean extra memory
and/or disk pages are needed.

-- 
Alan Modra
Australia Development Lab, IBM


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