[lld] [lld][MachO] Preserve __eh_frame ordering during BP section sorting (PR #191412)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 10:45:55 PDT 2026
================
@@ -122,6 +122,8 @@ DenseMap<const InputSection *, int> lld::macho::runBalancedPartitioning(
DenseMap<CachedHashStringRef, std::set<unsigned>> rootSymbolToSectionIdxs;
for (const auto *file : inputFiles) {
for (auto *sec : file->sections) {
+ if (sec->orderSensitive)
+ continue;
----------------
ellishg wrote:
Do you expect any other sections to be order sensitive? Or just `__eh_frame`? If so we can just explicitly block it and avoid increasing the size of the struct.
```suggestion
if (sec->name == section_names::ehFrame && sec->segname == segment_names::text))
continue;
```
Sorry for realizing this so late.
https://github.com/llvm/llvm-project/pull/191412
More information about the llvm-commits
mailing list