ElfSym::tlsModuleBase = cast<Defined>(s);
}
}
- }
- if (!config->relocatable) {
- llvm::TimeTraceScope timeScope("Finalize .eh_frame");
// This responsible for splitting up .eh_frame section into
// pieces. The relocation scan uses those pieces, so this has to be
// earlier.
- for (Partition &part : partitions)
- finalizeSynthetic(part.ehFrame.get());
+ {
+ llvm::TimeTraceScope timeScope("Finalize .eh_frame");
+ for (Partition &part : partitions)
+ finalizeSynthetic(part.ehFrame.get());
+ }
if (config->hasDynSymTab) {
parallelForEach(symtab.getSymbols(), [](Symbol *sym) {