Should the assembler pad a section to its alignment?
Alan Modra
amodra@gmail.com
Tue Aug 20 01:36:00 GMT 2013
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
More information about the Binutils
mailing list