This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to guarantee alignment for .comm and .lcomm defined variables
.lcomm doesn't really create common symbols. Instead you get a local
symbol in .bss that isn't any different from a local symbol allocated
in say, .data. Allocation and alignment is done by the assembler.
Common symbols on the other hand are allocated (or merged with a
normal symbol) by the linker. ELF common symbols have both size and
alignment.
--
Alan Modra
IBM OzLabs - Linux Technology Centre