[PATCH] D41318: Start setting dso_local in clang
Rafael Ávila de Espíndola via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 15 17:18:12 PST 2017
rafael created this revision.
rafael added reviewers: rnk, rsmith.
This starts adding dso_local to clang.
The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to clang to remove the need for the TargetMachine one to handle PIE copy relocations and -fno-plt. With that it should then be easy to implement a -fno-copy-reloc in clang.
This patch just adds the cases where we assume a symbol to be local based on the file being compiled for an executable or a shared library.
https://reviews.llvm.org/D41318
Files:
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGVTT.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGen/dso-local-executable.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41318.127217.patch
Type: text/x-patch
Size: 9150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171216/6b06bde8/attachment-0001.bin>
More information about the cfe-commits
mailing list