(lld-release-release-notes)=

lld {{ release | default("") }} Release Notes

:local: true

::::{only} PreRelease

:::{warning} These are in-progress notes for the upcoming LLVM {{ release | default("") }} release. Release notes for previous releases can be found on the Download Page. ::: ::::

Introduction

This document contains the release notes for the lld linker, release {{ release | default("") }}. Here we describe the status of lld, including major improvements from the previous release. All lld releases may be downloaded from the LLVM releases web site.

Non-comprehensive list of changes in this release

ELF Improvements

  • --mmap-output-file and --no-mmap-output-file were swapped in LLVM 21 and 22. They now mean what they say again; the default behavior is unchanged.

Breaking changes

COFF Improvements

MinGW Improvements

MachO Improvements

  • __objc_stubs entries are now ordered by the priority of the sections that call them, so that stubs reached from prioritized code are laid out together. This applies whenever section priorities exist, such as with -order_file.

  • Added support for Objective-C class-message stubs (_objc_msgSendClass$<selector>$_OBJC_CLASS_$_<class>), which load the class object, selector, and objc_msgSend target. Supported on arm64; other architectures report an error.

  • Added --warn-missing-subsections-via-symbols and --no-warn-missing-subsections-via-symbols to lld to warn when input object files lack the MH_SUBSECTIONS_VIA_SYMBOLS flag, which prevents dead-stripping and subsection splitting.

WebAssembly Improvements

Fixes