[lld] [LLD] Implement --enable-non-contiguous-regions (PR #90007)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 14:29:09 PDT 2024
================
@@ -35,6 +35,12 @@ ELF Improvements
* ``--debug-names`` is added to create a merged ``.debug_names`` index
from input ``.debug_names`` sections. Type units are not handled yet.
(`#86508 <https://github.com/llvm/llvm-project/pull/86508>`_)
+* ``--enable-non-contiguous-regions`` option allows automatically packing input
+ sections into memory regions by automatically spilling to later matches if a
+ region would overflow. This reduces the toil of manually packing regions
+ (typical for embedded). It also makes full LTO feasible in such cases, since
+ IR merging currently prevents the linker script from referring to input
+ files.
----------------
MaskRay wrote:
``(`#90007 <https://github.com/llvm/llvm-project/pull/90007>`_)``
https://github.com/llvm/llvm-project/pull/90007
More information about the llvm-commits
mailing list