public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Mayank Kumar <mayank@microsoft.com>
To: "binutils@sourceware.org" <binutils@sourceware.org>
Subject: How to guarantee alignment for .comm and .lcomm defined variables
Date: Mon, 23 Apr 2007 19:55:00 -0000	[thread overview]
Message-ID: <76EBE649FB0E0E4DA883B5840459059F144F2926F9@AA-EXMSG-C412.southpacific.corp.microsoft.com> (raw)
In-Reply-To: <76EBE649FB0E0E4DA883B5840459059F144F29264F@AA-EXMSG-C412.southpacific.corp.microsoft.com>

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

  parent reply	other threads:[~2007-04-23 18:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 19:45 Issues with gcc Assembler on Interix when generating PIC code Mayank Kumar
2007-04-23  6:47 ` Alan Modra
2007-04-23 10:05   ` Mayank Kumar
2007-04-23 11:59     ` Alan Modra
2007-04-23 19:55     ` Mayank Kumar [this message]
2007-04-24 13:57       ` How to guarantee alignment for .comm and .lcomm defined variables Alan Modra

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=76EBE649FB0E0E4DA883B5840459059F144F2926F9@AA-EXMSG-C412.southpacific.corp.microsoft.com \
    --to=mayank@microsoft.com \
    --cc=binutils@sourceware.org \
    /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).