mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
[lld-link] Enable addrsig table in COFF lto
This allow safe-icf mode to work when linking with LTO. Differential Revision: https://reviews.llvm.org/D99613
This commit is contained in:
@@ -62,6 +62,7 @@ static std::string getThinLTOOutputFile(StringRef path) {
|
||||
static lto::Config createConfig() {
|
||||
lto::Config c;
|
||||
c.Options = initTargetOptionsFromCodeGenFlags();
|
||||
c.Options.EmitAddrsig = true;
|
||||
|
||||
// Always emit a section per function/datum with LTO. LLVM LTO should get most
|
||||
// of the benefit of linker GC, but there are still opportunities for ICF.
|
||||
|
||||
Reference in New Issue
Block a user