[PATCH] D28250: [asan] Change the visibility of ___asan_globals_registered to hidden
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 12:55:44 PST 2017
kubabrecka created this revision.
kubabrecka added reviewers: kcc, eugenis, glider, rgov.
kubabrecka added subscribers: llvm-commits, zaks.anna, ributzka.
kubabrecka set the repository for this revision to rL LLVM.
kubabrecka added a project: Sanitizers.
This flag is used to track global registration in Mach-O and it doesn't need to be exported and visible.
Repository:
rL LLVM
https://reviews.llvm.org/D28250
Files:
lib/Transforms/Instrumentation/AddressSanitizer.cpp
Index: lib/Transforms/Instrumentation/AddressSanitizer.cpp
===================================================================
--- lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1800,6 +1800,7 @@
RegisteredFlag = new GlobalVariable(
M, IntptrTy, false, GlobalVariable::CommonLinkage,
ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName);
+ RegisteredFlag->setVisibility(GlobalVariable::HiddenVisibility);
// Update llvm.compiler.used, adding the new liveness globals. This is
// needed so that during LTO these variables stay alive. The alternative
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28250.82935.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170103/15e37507/attachment.bin>
More information about the llvm-commits
mailing list