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

Farid Zakaria via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 14:53:51 PDT 2026


fzakaria wrote:

> Is checking for `.ltext` a reliable way to check for large code model? Is it part of the ABI? Maybe we can check for other file properties or check code/data size manually.

How is this different than `.text` handling?
```
  const char *getMainCodeSectionName() const { return ".text"; }
```

These section names are convention but they are steeped across the tooling so they are effectively ABI.
Reading the x86-64 ABI https://gitlab.com/x86-psABIs/x86-64-ABI/-/tree/master?ref_type=heads (you can find latest PDF there) mentions `.ltext` as "Additional Special Sections for the Medium and Large Code Models"

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


More information about the llvm-commits mailing list