PATCH: Don't align text/data/bss sections in x86 assembler
H.J. Lu
hjl.tools@gmail.com
Mon Jun 3 15:27:00 GMT 2013
On Mon, Jun 3, 2013 at 1:25 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>>> On 31.05.13 at 19:32, "H.J. Lu" <hongjiu.lu@intel.com> wrote:
>> There is no need to align text/data/bss sections for ELF in x86
>> assembler. The alignment directive should be used if a symbol needs
>> a specfic alignment. I checked in this patch to avoid align
>> text/data/bss sections in x86 assembler.
>
> Are you reasonably sure that this will not result in regressions?
> While conceptionally I agree with the change (and never
> understood why the alignment was being enforced), I think such
> a change should only be done by providing a command line option
> to suppress the automatic alignment.
>
I thought about it and decided against it. The section
alignment is very arbitrary:
1. Many arches don't do it.
2. Only x86 ELF did it.
3. It only aligned text/data/bss sections and there are many
other sections with code and data which aren't aligned.
4. Neither gABI nor psABI require it.
--
H.J.
More information about the Binutils
mailing list