There were 5 subclasses of ArchiveLibraryFile in total and two of them required the fix imo.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
File object ownership is complicated, and I'm not sure if this fix is
correct. Leaking objects is a bug, but is this safe? Who keeps the
ownership of archive files until all linking is complete?
Comment Actions
All archive files are ownered by LinkingContext. Files are added as nodes. (like that: ctx->getNodes().push_back(std::move(node));)
LinkingContext looks to be alive all time until link complete.
Comment Actions
LGTM
ReaderWriter/ELF/OutputELFWriter.cpp | ||
---|---|---|
49–56 | Let's return early. if (_file->hasAtom()) return nullptr; ... |
Comment Actions
If everything is ok now - could you please commit ? I dont have write permissions yet.
ReaderWriter/ELF/OutputELFWriter.cpp | ||
---|---|---|
49–56 | Fixed. |
Let's return early.