We want lld-link to automatically find compiler-rt's and libc++ when it's in the same directory as the rest of the toolchain. This is because on Windows linking isn't done via the clang driver - but instead invoked directly. This prepends: <llvm>/lib <llvm>/lib/clang/XX/lib and <llvm>/lib/clang/XX/lib/windows automatically to the library search paths. Related to #63827 Differential Revision: https://reviews.llvm.org/D151188
67 lines
2.1 KiB
ReStructuredText
67 lines
2.1 KiB
ReStructuredText
===========================
|
|
lld |release| Release Notes
|
|
===========================
|
|
|
|
.. contents::
|
|
:local:
|
|
|
|
.. only:: PreRelease
|
|
|
|
.. warning::
|
|
These are in-progress notes for the upcoming LLVM |release| release.
|
|
Release notes for previous releases can be found on
|
|
`the Download Page <https://releases.llvm.org/download.html>`_.
|
|
|
|
Introduction
|
|
============
|
|
|
|
This document contains the release notes for the lld linker, release |release|.
|
|
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 <https://llvm.org/releases/>`_.
|
|
|
|
Non-comprehensive list of changes in this release
|
|
=================================================
|
|
|
|
ELF Improvements
|
|
----------------
|
|
|
|
* ``--remap-inputs=`` and ``--remap-inputs-file=`` are added to remap input files.
|
|
(`D148859 <https://reviews.llvm.org/D148859>`_)
|
|
* ``PT_RISCV_ATTRIBUTES`` is added to include the SHT_RISCV_ATTRIBUTES section.
|
|
(`D152065 <https://reviews.llvm.org/D152065>`_)
|
|
|
|
Breaking changes
|
|
----------------
|
|
|
|
COFF Improvements
|
|
-----------------
|
|
|
|
* lld-link can now find libraries with relative paths that are relative to
|
|
`/libpath`. Before it would only be able to find libraries relative to the
|
|
current directory.
|
|
I.e. ``lld-link /libpath:c:\relative\root relative\path\my.lib`` where before
|
|
we would have to do ``lld-link /libpath:c:\relative\root\relative\path my.lib``
|
|
* lld-link learned -print-search-paths that will print all the paths where it will
|
|
search for libraries.
|
|
* By default lld-link will now search for libraries in the toolchain directories.
|
|
Specifically it will search:
|
|
``<toolchain>/lib``, ``<toolchain>/lib/clang/<version>/lib`` and
|
|
``<toolchain>/lib/clang/<version>/lib/windows``.
|
|
|
|
MinGW Improvements
|
|
------------------
|
|
|
|
MachO Improvements
|
|
------------------
|
|
|
|
WebAssembly Improvements
|
|
------------------------
|
|
|
|
Fixes
|
|
#####
|
|
|
|
* Arm exception index tables (.ARM.exidx sections) are now output
|
|
correctly when they are at a non zero offset within their output
|
|
section. (`D148033 <https://reviews.llvm.org/D148033>`_)
|