Previously, if you invoke lld's main more than once in the same process,
the second invocation could fail or produce a wrong result due to a stale
pointer values of the previous run.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D52506
Reset input section pointers to null on each linker invocation. ClosedPublic Authored by ruiu on Sep 25 2018, 9:49 AM.
Details Summary Previously, if you invoke lld's main more than once in the same process,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 25 2018, 11:54 AM grimar mentioned this in D51409: [LLD][ELF] - Do not forget to clean synthetic sections pointers before link()..Sep 25 2018, 11:55 AM grimar added inline comments.
Closed by commit rL343009: Reset input section pointers to null on each linker invocation. (authored by ruiu). · Explain WhySep 25 2018, 12:28 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 166972 lld/trunk/ELF/Arch/AArch64.cpp
lld/trunk/ELF/Arch/ARM.cpp
lld/trunk/ELF/Arch/Mips.cpp
lld/trunk/ELF/Arch/PPC64.cpp
lld/trunk/ELF/Arch/X86.cpp
lld/trunk/ELF/Arch/X86_64.cpp
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/InputFiles.cpp
lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/MapFile.cpp
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/Relocations.cpp
lld/trunk/ELF/Symbols.cpp
lld/trunk/ELF/SyntheticSections.h
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/Writer.cpp
|