[lld] 6b30240 - Reland "[lld-link] Enable addrsig table in COFF lto"
Zequan Wu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 29 15:54:21 PDT 2021
Author: Zequan Wu
Date: 2021-04-29T15:54:12-07:00
New Revision: 6b30240288fc6c0871ea92fcf77c944b0bdd43ad
URL: https://github.com/llvm/llvm-project/commit/6b30240288fc6c0871ea92fcf77c944b0bdd43ad
DIFF: https://github.com/llvm/llvm-project/commit/6b30240288fc6c0871ea92fcf77c944b0bdd43ad.diff
LOG: Reland "[lld-link] Enable addrsig table in COFF lto"
This reverts commit a78fa73bcf986cf5912d665ecd9620535f480607.
The commit cab48e2f0e00648ef0494ce114f4e00a3ded330f fixes the issue on eabd55b1b2c5e322c3b36cb44348f178692890c8.
Added:
Modified:
lld/COFF/LTO.cpp
Removed:
################################################################################
diff --git a/lld/COFF/LTO.cpp b/lld/COFF/LTO.cpp
index a47f66ec7cf0..d117abf86f79 100644
--- a/lld/COFF/LTO.cpp
+++ b/lld/COFF/LTO.cpp
@@ -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.
More information about the llvm-commits
mailing list