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

Farid Zakaria via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 15:12:11 PDT 2026


================
@@ -0,0 +1,83 @@
+## Test that BOLT detects large code model binaries via SHF_X86_64_LARGE
+## on code sections and updates the LSDA encoding to 8-byte pointers.
+
+# REQUIRES: system-linux
+
+# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
+# RUN: ld.lld --no-pie %t.o -o %t.exe -q -e _start
+# RUN: llvm-bolt %t.exe -o %t.bolt --reorder-blocks=none 2>&1 \
+# RUN:   | FileCheck %s --check-prefix=CHECK-BOLT
+
+## Verify BOLT detects large code model via the SHF_X86_64_LARGE flag.
----------------
fzakaria wrote:

Fixed.

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


More information about the llvm-commits mailing list