Re: [PATCH] m68k: Implement _THIS_IP_ using inline asm
David Laight <[email protected]>
| Newsgroups | org.kernel.vger.linux-m68k,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260521190336.44dc3882@pumpkin> |
On Thu, 21 May 2026 17:14:33 +0200 Andreas Schwab <[email protected]> wrote: > 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. But it wont be one the compiler sees. I think it is an assembler variable that is automatically updated, so not actually a label that ends up in the symbol table. Even the '1b:' in some of the other examples are only second class labels. -- David > If you want to avoid a label, you need to use %pc(0) (or > %pc(-2) for an address at insn boundary). >