-fpatchable-function-entry: leverage multi-byte NOP on x86

Alexander Monakov amonakov@ispras.ru
Mon Jan 6 09:40:00 GMT 2020

On Mon, 6 Jan 2020, Martin Liška wrote:

> You are right, we do not leverage multi-byte NOPs. Note that the support
> depends
> on a CPU model (-march) and the similar code is quite complex in binutils:
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gas/config/tc-i386.c;h=d0b8f2624a1885d83d2595474bfd78ae844f48f2;hb=HEAD#l1441
> I'm not sure how worthy would it be to implement that?

Huh? Surely the right move would be to ask Binutils to expose that via
a new pseudo-op, like .balign but requesting a specific space rather
than aligning up to a boundary.


More information about the Gcc mailing list