From: Andreas Schwab <schwab@linux-m68k.org>
To: Marco Elver <elver@google.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
kasan-dev@googlegroups.com
Subject: Re: [PATCH] m68k: Implement _THIS_IP_ using inline asm
Date: Thu, 21 May 2026 17:14:33 +0200 [thread overview]
Message-ID: <87h5o0zteu.fsf@igel.home> (raw)
In-Reply-To: <20260521123438.147789-1-elver@google.com> (Marco Elver's message of "Thu, 21 May 2026 14:34:30 +0200")
On Mai 21 2026, Marco Elver wrote:
> version. Additionally, avoiding taking the address of a label prevents
> compilers from emitting spurious indirect branch targets (e.g. ENDBR or
> BTI) under control-flow integrity schemes.
Ignoring the fact that m68k will never gain such a feature, dot is still
a label. If you want to avoid a label, you need to use %pc(0) (or
%pc(-2) for an address at insn boundary).
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2026-05-21 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 12:34 [PATCH] m68k: Implement _THIS_IP_ using inline asm Marco Elver
2026-05-21 15:14 ` Andreas Schwab [this message]
2026-05-21 15:26 ` Marco Elver
2026-05-21 18:03 ` David Laight
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=87h5o0zteu.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=elver@google.com \
--cc=geert@linux-m68k.org \
--cc=kasan-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.