kamleshbhalui updated this revision to Diff 367954. kamleshbhalui added a comment.
assume dso local if relocation model static Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D108421/new/ https://reviews.llvm.org/D108421 Files: llvm/lib/Target/TargetMachine.cpp Index: llvm/lib/Target/TargetMachine.cpp =================================================================== --- llvm/lib/Target/TargetMachine.cpp +++ llvm/lib/Target/TargetMachine.cpp @@ -149,6 +149,11 @@ return GV->isStrongDefinitionForLinker(); } + if (TT.isOSBinFormatELF()) { + if (RM == Reloc::Static) + return true; + } + // Due to the AIX linkage model, any global with default visibility is // considered non-local. if (TT.isOSBinFormatXCOFF())
Index: llvm/lib/Target/TargetMachine.cpp =================================================================== --- llvm/lib/Target/TargetMachine.cpp +++ llvm/lib/Target/TargetMachine.cpp @@ -149,6 +149,11 @@ return GV->isStrongDefinitionForLinker(); } + if (TT.isOSBinFormatELF()) { + if (RM == Reloc::Static) + return true; + } + // Due to the AIX linkage model, any global with default visibility is // considered non-local. if (TT.isOSBinFormatXCOFF())
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits