[llvm] [BOLT] Update LSDA encoding for x86-64 large code model (PR #190685)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 16:31:24 PDT 2026


================
@@ -2241,6 +2238,18 @@ Error RewriteInstance::readSpecialSections() {
                   "Use -update-debug-sections to keep it.\n";
   }
 
+  // Detect large code model by the presence of .ltext sections.
+  if (opts::LargeCodeModel.getNumOccurrences() == 0 &&
+      BC->getUniqueSectionByName(".ltext")) {
+    BC->HasLargeCodeModel = true;
+  }
+
+  // Placed in a separate block so that we can check for it in lit tests
+  if (BC->HasLargeCodeModel) {
+    BC->outs() << "BOLT-INFO: large code model detected\n";
----------------
maksfb wrote:

Will we get this printout on AArch64 by default?

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


More information about the llvm-commits mailing list