This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: comm/local/ELF/gas/gcc


   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