public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Xi Ruoyao <xry111@xry111.site>
To: YunQiang Su <syq@gcc.gnu.org>, Jan Beulich <jbeulich@suse.com>
Cc: binutils <binutils@sourceware.org>
Subject: Re: Gas: Any pseudo instruction to disable a single RELOC?
Date: Fri, 12 Jan 2024 23:43:03 +0800	[thread overview]
Message-ID: <434c6801331f45762ad1f766ce3759abdee12803.camel@xry111.site> (raw)
In-Reply-To: <CAKcpw6W1_u0RsrgM=GPBa2rrh+xDWTHjo7vbOqDBogj6MqXDiw@mail.gmail.com>

在 2024-01-12星期五的 22:41 +0800,YunQiang Su写道:
> > I don't think there is, and I don't think there should be. People using
> > .reloc absolutely need to know what they are doing.
> > 
> 
> Thank you, I find a solution.
> BAL  . + 4
> won't emit any relocs.
> 
> Background:
> MIPS pre-R6 has no instructions that can read PC directly, thus we
> have to use an branch and link instruction to do so.

For this purpose GAS already supports the nal alias for bltzal $r0, 0.

> I am working on GCC to support it. I don' want to emit an label for this
> simple branch.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

  reply	other threads:[~2024-01-12 15:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 10:08 YunQiang Su
2024-01-12 10:17 ` Jan Beulich
2024-01-12 14:41   ` YunQiang Su
2024-01-12 15:43     ` Xi Ruoyao [this message]
2024-01-12 16:00       ` YunQiang Su

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=434c6801331f45762ad1f766ce3759abdee12803.camel@xry111.site \
    --to=xry111@xry111.site \
    --cc=binutils@sourceware.org \
    --cc=jbeulich@suse.com \
    --cc=syq@gcc.gnu.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).