[lld] [LLD] Implement --enable-non-contiguous-regions (PR #90007)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 10 19:27:04 PDT 2024


================
@@ -226,6 +226,13 @@ void OutputSection::finalizeInputSections() {
         i = std::prev(mergeSections.end());
         syn->entsize = ms->entsize;
         isd->sections.push_back(syn);
+        // The merge synthetic section inherits the potential spill locations of
+        // its first contained section.
+        if (script) {
----------------
MaskRay wrote:

Remove the `if`. `script is non-null

https://github.com/llvm/llvm-project/pull/90007


More information about the llvm-commits mailing list