public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: YunQiang Su <syq@gcc.gnu.org>
Cc: binutils <binutils@sourceware.org>
Subject: Re: Gas: Any pseudo instruction to disable a single RELOC?
Date: Fri, 12 Jan 2024 11:17:43 +0100	[thread overview]
Message-ID: <92969380-bc94-4f42-ad8c-4a555ef9470f@suse.com> (raw)
In-Reply-To: <CAKcpw6VN7FABHbZBRHpskthsUCewR=WHa_s-xQbn4WUyM_fmpA@mail.gmail.com>

On 12.01.2024 11:08, YunQiang Su wrote:
> Is there a way to disable generating RELOC for a single instruction?
> One example is
> 
>      .set noreorder
> xx:
>       .reloc 0,R_MIPS_NONE,0  # append a new reloc.
>       bal 4
>       nop
>       sll $2,$2,0
>       sll $2,$2,0
> 
> 
> In this example, I wish `bal 4` would be keeped as is.
> Is there a way to disable generating any RELOC?

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.

Jan

  reply	other threads:[~2024-01-12 10:17 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 [this message]
2024-01-12 14:41   ` YunQiang Su
2024-01-12 15:43     ` Xi Ruoyao
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=92969380-bc94-4f42-ad8c-4a555ef9470f@suse.com \
    --to=jbeulich@suse.com \
    --cc=binutils@sourceware.org \
    --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).