diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/LTOModule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index c7cd585..fc028a2 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -325,7 +325,9 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler, } // set definition part - if (def->hasWeakLinkage() || def->hasLinkOnceLinkage()) { + if (def->hasWeakLinkage() || def->hasLinkOnceLinkage() || + def->hasLinkerPrivateWeakLinkage() || + def->hasLinkerPrivateWeakDefAutoLinkage()) { attr |= LTO_SYMBOL_DEFINITION_WEAK; } else if (def->hasCommonLinkage()) { |