Skip to content

Commit d1b418f

Browse files
committed
[ELF] Reset two member variables in Ctx::reset
Otherwise they are dangling if lldMain is called more than once.
1 parent fd8349c commit d1b418f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/ELF/Driver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ void Ctx::reset() {
104104
nonPrevailingSyms.clear();
105105
whyExtractRecords.clear();
106106
backwardReferences.clear();
107+
auxiliaryFiles.clear();
107108
hasSympart.store(false, std::memory_order_relaxed);
109+
hasTlsIe.store(false, std::memory_order_relaxed);
108110
needsTlsLd.store(false, std::memory_order_relaxed);
109111
scriptSymOrderCounter = 1;
110112
scriptSymOrder.clear();

0 commit comments

Comments
 (0)