public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: mengqinggang <mengqinggang@loongson.cn>
To: Xi Ruoyao <xry111@xry111.site>, "H.J. Lu" <hjl.tools@gmail.com>
Cc: binutils@sourceware.org, xuchenghua@loongson.cn,
	chenglulu@loongson.cn, liuzhensong@loongson.cn,
	cailulu@loongson.cn, i.swmail@xen0n.name, maskray@google.com,
	luweining@loongson.cn, wanglei@loongson.cn,
	hejinyang@loongson.cn
Subject: Re: [PATCH v1] LoongArch: gas: Ignore .align if it is at the start of a section
Date: Thu, 21 Mar 2024 09:34:16 +0800	[thread overview]
Message-ID: <3b1ef734-e704-ae55-3f1b-8aa3d1ede6f4@loongson.cn> (raw)
In-Reply-To: <ede9234eb597054badaae2f053839ee95eb9a8ce.camel@xry111.site>


在 2024/3/20 下午8:53, Xi Ruoyao 写道:
> On Wed, 2024-03-20 at 04:08 -0700, H.J. Lu wrote:
>> On Wed, Mar 20, 2024 at 3:08 AM mengqinggang <mengqinggang@loongson.cn> wrote:
>>> Ignore .align if it is at the start of a section, the section alignment
>>> can ensure correct alignment.
>> What happens when the section is aligned at 8 bytes and .align is aligned to
>> 16 bytes?

According to my understanding, section alignment is the maximum 
alignment within section.
And, can we set the alignment of a section separately?


> If it happens we should increase the section alignment to 16, or we were
> silently generating broken output and we had a bug anyway...
>


      reply	other threads:[~2024-03-21  1:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 10:07 mengqinggang
2024-03-20 11:08 ` H.J. Lu
2024-03-20 12:53   ` Xi Ruoyao
2024-03-21  1:34     ` mengqinggang [this message]

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=3b1ef734-e704-ae55-3f1b-8aa3d1ede6f4@loongson.cn \
    --to=mengqinggang@loongson.cn \
    --cc=binutils@sourceware.org \
    --cc=cailulu@loongson.cn \
    --cc=chenglulu@loongson.cn \
    --cc=hejinyang@loongson.cn \
    --cc=hjl.tools@gmail.com \
    --cc=i.swmail@xen0n.name \
    --cc=liuzhensong@loongson.cn \
    --cc=luweining@loongson.cn \
    --cc=maskray@google.com \
    --cc=wanglei@loongson.cn \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /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).