binutils Newspaper
NOVEMBER 30, 2026
x86 — Proposed

x86: coverage of -mlfence-after-load

A series of patches to improve the accuracy and documentation of the -mlfence-after-load option for x86.

This series of three patches aims to correct and improve the functionality and documentation of the -mlfence-after-load assembler option for x86. The changes include extending the coverage to more instructions that require load fencing for security mitigations, limiting coverage to exclude instructions that don’t necessitate it, and clarifying the documentation to accurately reflect the option’s scope and behavior.

In Details

This is the cover letter for a series of three patches addressing the -mlfence-after-load option in the x86 assembler. The series aims to fix issues where the option's coverage was both too broad and too narrow, and where its documentation was inaccurate. The patches refine which instructions trigger an LFENCE insertion and improve the explanation of this behavior.

For Context
x86
A family of instruction set architectures (ISAs) for CPUs, commonly used in personal computers and servers.
-mlfence-after-load
An assembler option that controls the insertion of an LFENCE (load fence) instruction after certain load operations.
LFENCE
A processor instruction that orders memory loads, preventing subsequent loads from being reordered before it.
assembler
A program that translates assembly language code into machine code.
documentation
Written materials that explain how a piece of software works or how to use it.
Filed Under: binutilsx86securitydocumentation