diff options
-rw-r--r-- | tools/lto2/LTOModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lto2/LTOModule.cpp b/tools/lto2/LTOModule.cpp index cc3b1f142d..2fd29be272 100644 --- a/tools/lto2/LTOModule.cpp +++ b/tools/lto2/LTOModule.cpp @@ -203,6 +203,9 @@ void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler, attr |= LTO_SYMBOL_DEFINITION_TENTATIVE; } } + else if ( def->hasCommonLinkage()) { + attr |= LTO_SYMBOL_DEFINITION_TENTATIVE; + } else { attr |= LTO_SYMBOL_DEFINITION_REGULAR; } |