hanchenye-llvm-project/lld/ELF
Yolanda Chen 8fa16cc628 [LTO][lld] Add lto-pgo-warn-mismatch option
When enable CSPGO for ThinLTO, there are profile cfg mismatch warnings that will cause lld-link errors (with /WX)
due to source changes (e.g. `#if` code runs for profile generation but not for profile use)
To disable it we have to use an internal "/mllvm:-no-pgo-warn-mismatch" option.
In contrast clang uses option ”-Wno-backend-plugin“ to avoid such warnings and gcc has an explicit "-Wno-coverage-mismatch" option.

Add "lto-pgo-warn-mismatch" option to lld COFF/ELF to help turn on/off the profile mismatch warnings explicitly when build with ThinLTO and CSPGO.

Differential Revision: https://reviews.llvm.org/D104431
2021-08-11 09:45:55 -07:00
..
Arch [lld][AMDGPU] Handle R_AMDGPU_REL16 relocation. 2021-07-13 20:41:11 +01:00
AArch64ErrataFix.cpp
AArch64ErrataFix.h
ARMErrataFix.cpp [LLD][ELF][ARM] Fix case of patched unrelocated BLX 2021-06-30 14:07:35 +01:00
ARMErrataFix.h
CMakeLists.txt
CallGraphSort.cpp
CallGraphSort.h
Config.h [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
DWARF.cpp
DWARF.h
Driver.cpp [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
Driver.h
DriverUtils.cpp [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
EhFrame.cpp
EhFrame.h
ICF.cpp
ICF.h
InputFiles.cpp [LTO] Add SelectionKind to IRSymtab and use it in ld.lld/LLVMgold 2021-07-20 13:22:00 -07:00
InputFiles.h [LLD] Adding support for RELA for CG Profile. 2021-07-13 13:56:30 -07:00
InputSection.cpp [LLD] Support compressed input sections on big-endian targets 2021-08-07 13:20:13 +03:00
InputSection.h [LLD] Support compressed input sections on big-endian targets 2021-08-07 13:20:13 +03:00
LTO.cpp [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
LTO.h
LinkerScript.cpp [ELF] Make dot in .tbss correct 2021-08-04 08:58:50 -07:00
LinkerScript.h [ELF] Make dot in .tbss correct 2021-08-04 08:58:50 -07:00
MapFile.cpp
MapFile.h
MarkLive.cpp Revert "[ELF] --gc-sections: allow GC on reserved sections in a group" 2021-07-27 16:34:32 -07:00
MarkLive.h
Options.td [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
OutputSections.cpp [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
OutputSections.h [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
README.md
Relocations.cpp [ELF] Support copy relocation on non-default version symbols 2021-08-05 10:32:14 -07:00
Relocations.h [ELF] Support .rela.eh_frame with unordered r_offset values 2021-04-29 08:51:09 -07:00
ScriptLexer.cpp [ELF] Optimize ScriptLexer::getLineNumber by caching the previous line number and offset 2021-06-22 15:35:24 -07:00
ScriptLexer.h [ELF] Optimize ScriptLexer::getLineNumber by caching the previous line number and offset 2021-06-22 15:35:24 -07:00
ScriptParser.cpp [ELF] Apply version script patterns to non-default version symbols 2021-08-04 23:52:56 -07:00
ScriptParser.h
SymbolTable.cpp [ELF] Apply version script patterns to non-default version symbols 2021-08-04 23:52:56 -07:00
SymbolTable.h [ELF] Apply version script patterns to non-default version symbols 2021-08-04 23:52:56 -07:00
Symbols.cpp [ELF] Apply version script patterns to non-default version symbols 2021-08-04 23:52:56 -07:00
Symbols.h
SyntheticSections.cpp [ELF] Add -Bsymbolic-non-weak-functions 2021-07-29 14:46:53 -07:00
SyntheticSections.h [ELF][AArch64] Write addends for TLSDESC relocations with -z rel 2021-07-09 10:41:41 +01:00
Target.cpp [ELF] Check the Elf_Rel addends for dynamic relocations 2021-07-09 10:41:40 +01:00
Target.h [lld][X86] Restore gotEntrySize. 2021-05-17 00:13:00 +01:00
Thunks.cpp [ELF] Refactor DynamicReloc to fix incorrect relocation addends 2021-07-09 10:41:40 +01:00
Thunks.h [lld] Add missing includes (NFC) 2021-06-03 18:55:18 +02:00
Writer.cpp [ELF] Align the first section of a PT_TLS even if its type is SHT_NOBITS 2021-07-29 15:14:00 +01:00
Writer.h

README.md

See docs/NewLLD.rst