hanchenye-llvm-project/lld/ELF
Alexandre Ganea 83d59e05b2 Re-land [LLD] Remove global state in lldCommon
Move all variables at file-scope or function-static-scope into a hosting structure (lld::CommonLinkerContext) that lives at lldMain()-scope. Drivers will inherit from this structure and add their own global state, in the same way as for the existing COFFLinkerContext.

See discussion in https://lists.llvm.org/pipermail/llvm-dev/2021-June/151184.html

The previous land f860fe3622 caused issues in https://lab.llvm.org/buildbot/#/builders/123/builds/8383, fixed by 22ee510dac.

Differential Revision: https://reviews.llvm.org/D108850
2022-01-20 14:53:26 -05:00
..
Arch Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
AArch64ErrataFix.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
AArch64ErrataFix.h
ARMErrataFix.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
ARMErrataFix.h
CMakeLists.txt
CallGraphSort.cpp [ELF] Avoid referencing SectionBase::repl after ICF 2021-12-24 12:09:48 -08:00
CallGraphSort.h
Config.h [ELF] ScriptParser: change std::vector to SmallVector 2021-12-26 20:12:55 -08:00
DWARF.cpp [ELF] Add ELFFileBase::{elfShdrs,numELFShdrs} to avoid duplicate llvm::object::ELFFile::sections() 2021-12-24 17:10:38 -08:00
DWARF.h
Driver.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Driver.h [ELF][LTO] Call madvise(MADV_DONTNEED) on MemoryBuffer instances 2021-12-30 11:36:58 -08:00
DriverUtils.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
EhFrame.cpp [ELF] Simplify/optimize EhInputSection::split 2022-01-18 17:03:23 -08:00
EhFrame.h [ELF] Simplify/optimize EhInputSection::split 2022-01-18 17:03:23 -08:00
ICF.cpp [ELF] Simplify Symbol::includeInDynsym 2022-01-15 23:27:45 -08:00
ICF.h
InputFiles.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
InputFiles.h [ELF] Move SHT_REL/SHT_RELA handling from createInputSection to initializeSections 2022-01-18 23:31:51 -08:00
InputSection.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
InputSection.h [ELF] De-template InputSectionBase::getLocation. NFC 2022-01-18 17:33:58 -08:00
LTO.cpp [ELF] SymbolTable:🔣 don't filter out PlaceholderKind 2021-12-26 18:11:45 -08:00
LTO.h
LinkerScript.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
LinkerScript.h [ELF] Change some DenseMap<StringRef, *> to DenseMap<CachedHashStringRef, *>. NFC 2022-01-16 21:19:01 -08:00
MapFile.cpp [ELF] Change objectFiles to ELFFileBase * 2021-12-15 00:37:10 -08:00
MapFile.h [ELF] --cref: If -Map is specified, print to the map file 2021-11-29 14:14:53 -08:00
MarkLive.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
MarkLive.h
Options.td [ELF] Enforce double-dash form for --color-diagnostics/--rsp-quoting/--symbol-ordering-file 2022-01-06 01:02:14 -08:00
OutputSections.cpp [ELF] LinkerScript/OutputSection: change other std::vector members to SmallVector 2021-12-26 13:53:47 -08:00
OutputSections.h [ELF] LinkerScript/OutputSection: change other std::vector members to SmallVector 2021-12-26 13:53:47 -08:00
README.md
Relocations.cpp [ELF] RelocationScanner::scanOne: replace rel.r_offset with offset. NFC 2022-01-17 00:05:27 -08:00
Relocations.h [ELF] Optimize basic block section bytesDropped/jumpInstrMods 2021-12-26 22:17:30 -08:00
ScriptLexer.cpp
ScriptLexer.h
ScriptParser.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
ScriptParser.h
SymbolTable.cpp [lld] Add support for other demanglers other than Itanium 2022-01-05 03:25:41 +00:00
SymbolTable.h [ELF] Change some DenseMap<StringRef, *> to DenseMap<CachedHashStringRef, *>. NFC 2022-01-16 21:19:01 -08:00
Symbols.cpp [ELF] Remove !isLazy() condition from computeBinding 2022-01-15 23:58:15 -08:00
Symbols.h [ELF] Remove StringRefZ 2022-01-19 20:09:41 -08:00
SyntheticSections.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
SyntheticSections.h [ELF] Change std::vector<InputSectionBase *> to SmallVector 2022-01-17 10:25:07 -08:00
Target.cpp [ELF] De-template InputSectionBase::getLocation. NFC 2022-01-18 17:33:58 -08:00
Target.h [lld][ELF] Support adrp+ldr GOT optimization for AArch64 2022-01-10 05:20:37 +00:00
Thunks.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Thunks.h
Writer.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Writer.h [ELF] Move getOutputSectionName from Writer.cpp to LinkerScript.cpp. NFC 2021-11-20 22:18:09 -08:00

README.md

See docs/NewLLD.rst