summaryrefslogtreecommitdiffstats
path: root/tools/xdisplaycheck/xdisplaycheck.cc
diff options
context:
space:
mode:
authorearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-31 17:24:26 +0000
committerearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-31 17:24:26 +0000
commit14a08698046a5c65a35bcbd22a05fc67ee1b93d5 (patch)
tree4cb4a4198a50fe16484cb17da14fe41707fd9845 /tools/xdisplaycheck/xdisplaycheck.cc
parent25a54fc1956d7bc40f30355af840f21e0181afa9 (diff)
downloadchromium_src-14a08698046a5c65a35bcbd22a05fc67ee1b93d5.zip
chromium_src-14a08698046a5c65a35bcbd22a05fc67ee1b93d5.tar.gz
chromium_src-14a08698046a5c65a35bcbd22a05fc67ee1b93d5.tar.bz2
Add missing attributes to functions which we export for ASan.
The linker was complaining. BUG=302040 R=mseaborn@chromium.org TBR=mseaborn@chromium.org Review URL: https://codereview.chromium.org/219193007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/xdisplaycheck/xdisplaycheck.cc')
-rw-r--r--tools/xdisplaycheck/xdisplaycheck.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/xdisplaycheck/xdisplaycheck.cc b/tools/xdisplaycheck/xdisplaycheck.cc
index 8c432d1..1731788 100644
--- a/tools/xdisplaycheck/xdisplaycheck.cc
+++ b/tools/xdisplaycheck/xdisplaycheck.cc
@@ -111,5 +111,9 @@ int main(int argc, char* argv[]) {
// XOpenDisplay leaks memory if it takes more than one try to connect. This
// causes LSan bots to fail. We don't care about memory leaks in xdisplaycheck
// anyway, so just disable LSan completely.
+// This function isn't referenced from the executable itself. Make sure it isn't
+// stripped by the linker.
+__attribute__((used))
+__attribute__((visibility("default")))
extern "C" int __lsan_is_turned_off() { return 1; }
#endif