public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: hjl@nynexst.com (H.J. Lu)
To: gcc2@cygnus.com
Cc: gas2@cygnus.com, raeburn@cygnus.com (Ken Raeburn),
	ian@cygnus.com (Ian Lance Taylor)
Subject: comm/local/ELF/gas/gcc
Date: Mon, 27 Nov 1995 22:06:00 -0000	[thread overview]
Message-ID: <9511280605.AA10129@nynexst.com> (raw)

I am kind of confused by the asm output under x86/ELF:

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.
2. __attribute__ ((aligned (n))) doesn't do anything useful if n > 4
  for integer or 8 for double. Should a better MAX_OFILE_ALIGNMENT
  be defined for x86?
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. But I checked as on Sparc/Solaris.

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

and

	.comm  x.2,4,16

have the same alignment. Personally I prefer Solaris. But if most of
ELF/SVR4 as does the same as gas, I guess my opinion doesn't count
much.

I don't know what the correct fixes are. I hope:

1. Increase MAX_OFILE_ALIGNMENT for x86 to 0x1000 or somthing like that.
2. Change gas to work like Solaris.


-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com


             reply	other threads:[~1995-11-27 22:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-27 22:06 H.J. Lu [this message]
1995-11-28  8:55 ` comm/local/ELF/gas/gcc Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9511280605.AA10129@nynexst.com \
    --to=hjl@nynexst.com \
    --cc=gas2@cygnus.com \
    --cc=gcc2@cygnus.com \
    --cc=ian@cygnus.com \
    --cc=raeburn@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).