[PATCH] x86: Add .nop directive to assembler
H.J. Lu
hjl.tools@gmail.com
Mon Feb 19 14:24:00 GMT 2018
More information about the Binutils mailing list
Mon Feb 19 14:24:00 GMT 2018
- Previous message (by thread): [PATCH] x86: Add .nop directive to assembler
- Next message (by thread): [PATCH] x86: Add .nop directive to assembler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Feb 19, 2018 at 5:41 AM, Florian Weimer <fweimer@redhat.com> wrote: > On 02/12/2018 08:38 PM, H.J. Lu wrote: >> >> +@cindex @code{nop} directive >> +@cindex filling memory with NOP >> +This directive emits @var{size} bytes filled with @code{NOP} >> +instructions. @var{size} is absolute expression, which must be >> +between 0 and 512. @var{limit} specifies the size limit of a >> +single @code{NOP} instruction. If the comma and @var{limit} are >> +omitted, @var{limit} is assumed to the maximum supported size of >> +a single @code{NOP} instruction. The valid values of @var{limit} >> +are between 1 and 8 for 16-bit mode, between 1 and 10 for 32-bit mode, >> +between 1 and 11 for 64-bit mode. This directive is only allowed >> +in text sections. > > > The documentation doesn't say if it is safe to execute those NOPs on all These NOPs are no different from other x86 instructions, like CMOVxx. > future CPUs, or if these NOPs can only be used for non-executing padding. I > think it's worth clarifying that. > .nop is similar to .skip, except that it fills with NOPs. Yes, it can be used wherever .skip can be used. -- H.J.
- Previous message (by thread): [PATCH] x86: Add .nop directive to assembler
- Next message (by thread): [PATCH] x86: Add .nop directive to assembler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list