[binutils-gdb] x86: extend documentation of -mlfence-after-load
Jan Beulich
jbeulich@sourceware.org
Fri Nov 6 07:18:50 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5f691b65af8c1c6ec607bd8886cf68a5bdcda436
commit 5f691b65af8c1c6ec607bd8886cf68a5bdcda436
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Nov 6 08:16:33 2026 +0100
x86: extend documentation of -mlfence-after-load
It was decided to not bother covering newer ISA extensions. Reflect that,
while also clarifying that it's not _all_ load insns which are covered.
Diff:
---
gas/doc/c-i386.texi | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index f0aec60fda8..d298f11e56f 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -545,9 +545,12 @@ The default doesn't align branches.
@item -mlfence-after-load=@var{no}
@itemx -mlfence-after-load=@var{yes}
These options control whether the assembler should generate lfence
-after load instructions. @option{-mlfence-after-load=@var{yes}} will
-generate lfence. @option{-mlfence-after-load=@var{no}} will not generate
-lfence, which is the default.
+after load instructions altering registers which may be used by address
+calculations of subsequent memory accesses. Only ISAs available on
+hardware affected by Intel SA-00334 will be reliably covered.
+@option{-mlfence-after-load=@var{yes}} will generate lfence.
+@option{-mlfence-after-load=@var{no}} will not generate lfence, which is
+the default.
@cindex @samp{-mlfence-before-indirect-branch=} option, i386
@cindex @samp{-mlfence-before-indirect-branch=} option, x86-64
More information about the Binutils-cvs
mailing list