How to guarantee alignment for .comm and .lcomm defined variables
Mayank Kumar
mayank@microsoft.com
Mon Apr 23 19:55:00 GMT 2007
Some platforms like interix and cygwin do not support the third argument to .comm/.lcomm which enables alignment of common variables defined in .bss section. Now i want to understand how we can guarantee that the object code generated would have these symbols aligned at lets say 16 byte boundary.
s_lcomm_internal takes a parameter needs_align and based on whether the third parameter was entered, records the largest alignment requested for .bss section. I did not see how guaranteeing the alignment of the .bss section for the largest alignment would also take care of the alignment requirement of symbols defined in .bss.
could somebody shed some light here?
How does other platforms implement the alignment for symbols defined in .bss section.
Thanks and regards
Mayank
More information about the Binutils
mailing list