diff --git a/lld/docs/ReleaseNotes.rst b/lld/docs/ReleaseNotes.rst --- a/lld/docs/ReleaseNotes.rst +++ b/lld/docs/ReleaseNotes.rst @@ -24,8 +24,60 @@ ELF Improvements ---------------- +* ``--lto-pseudo-probe-for-profiling`` is added. + (`D95056 `_) * ``--error-handling-script`` is added to allow for user-defined handlers upon missing libraries. (`D87758 `_) +* ``--dependency-file`` is added. (Similar to ``cc -M -MF``.) + (`D82437 `_) +* ``--reproduce`` includes ``--lto-sample-profile``, ``--just-symbols``, ``--call-graph-ordering-file``, ``--retain-symbols-file`` files. +* ``--exclude-libs`` can localize defined version symbols and bitcode referenced libcall symbols. + (`D94280 `_) +* ``-r --gc-sections`` is supported. + (`D84131 `_) +* ``--oformat-binary`` is fixed to respect LMA. + (`D85086 `_) +* ``--icf={safe,all}`` conservatively do not fold text sections with LSDA. + Previously ICF on ``-fexceptions`` code could be unsafe. + (`D84610 `_) +* ``--icf={safe,all}`` can fold two sections with relocations referencing aliased symbols. + (`D88830 `_) +* ``SHF_LINK_ORDER`` sections can have zero ``sh_link`` values. +* ``SHF_LINK_ORDER`` and non-``SHF_LINK_ORDER`` sections can be mixed within an input section description. + (`D84001 `_) +* ``--wrap`` support is improved. +* ``--gdb-index`` works with DWARF v5 and ``--icf={safe,all}``. + (`D89751 `_) +* A ``-u`` specified symbol will not change the binding to ``STB_WEAK``. + (`D88945 `_) +* ``LOG2CEIL`` is supported in linker scripts. + (`D84054 `_) +* ``DEFINED`` is fixed to check whether the symbol is defined. + (`D83758 `_) +* An input section description may have multiple ``SORT_*``. + The matched sections are ordered by radix sort with the keys being ``(SORT*, --sort-section, input order)``. + (`D91127 `_) +* Users can provide a GNU style linker script to convert ``.ctors`` into ``.init_array``. + (`D91187 `_) +* Some symbol versioning improvements. +* A COMMON symbol can now cause the fetch of an archive providing a ``STB_GLOBAL`` definition. + This behavior follows GNU ld newer than 1999. + If you see ``duplicate symbol`` errors with the new behavior, check out `PR49226 `_. + (`D86142 `_) +* AArch64 has support for ``STO_AARCH64_VARIANT_PCS`` and ``DT_AARCH64_VARIANT_PCS``. + (`D93045 `_) +* AArch64 has support for ``R_AARCH64_LD64_GOTPAGE_LO15``. +* PowerPC64 port detects missing R_PPC64_TLSGD/R_PPC64_TLSLD and disable TLS relaxation. + This allows linking with object files produced by very old IBM XL compilers. + (`D92959 `_) +* Many PowerPC PC-relative relocations are supported. +* ``R_PPC_ADDR24`` and ``R_PPC64_ADDR16_HIGH`` are supported. +* powerpcle is supported. Tested with FreeBSD kernel and userspace. + (`D93917 `_) +* Non-``SHF_ALLOC`` sections have larger file offsets than ``SHF_ALLOC`` sections. + (`D85867 `_) +* RISC-V: the first ``SHT_RISCV_ATTRIBUTES`` section is retained. + (`D86309 `_) Breaking changes ----------------