comm/local/ELF/gas/gcc

Ian Lance Taylor ian@cygnus.com
Tue Nov 28 08:55:00 GMT 1995


   From: hjl@nynexst.com (H.J. Lu)
   Date: Tue, 28 Nov 95 1:05:35 EST

   1. There is a limit of MAX_OFILE_ALIGNMENT in bits for maximum alignment.
      But it only applies to symbols in data, not those in bss/common.

The problem would appear to be that gcc defaults to value of
MAX_OFILE_ALIGNMENT to BIGGEST_ALIGNMENT.  For the i386,
BIGGEST_ALIGNMENT is 32 or 64.  It would be reasonable for
config/svr4.h in gcc to set MAX_OFILE_ALIGNMENT to 0x80000000.
However, I don't know what the consequences are of requesting an
alignment larger than BIGGEST_ALIGNMENT.  Is that supposed to work or
not?

   3. The x86/ELF gas is kind of strange:

	   .local x.2
	   .comm   x.2,4,4

   and

	   .comm  x.2,4,16

   mean the same alignment.

This was a gas bug.  It is fixed in the 2.6 release.

Ian




More information about the Gas2 mailing list