summaryrefslogtreecommitdiff
path: root/bolt/runtime
diff options
context:
space:
mode:
authorVladislav Khmelevsky <vladislav.khmelevskyi@huawei.com>2021-07-22 00:04:28 +0300
committerMaksim Panchenko <maks@fb.com>2021-07-22 00:04:28 +0300
commitaf58da4ef3fbd766b2c44cfdbdb859a21022d10a (patch)
treed9813f0df6a382b08d77ef2d7cbdedf4c08a5d38 /bolt/runtime
parent553f28e9217d168476148eb13e7e53bdc84883d1 (diff)
downloadllvm-af58da4ef3fbd766b2c44cfdbdb859a21022d10a.tar.gz
[PR] Instrumentation: Avoid generating GOT table in instrumentation library
Summary: To avoid RELATIVE relocations avoid using of GOT table by using hidden visibility for all symbols in library. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei (cherry picked from FBD30092712)
Diffstat (limited to 'bolt/runtime')
-rw-r--r--bolt/runtime/instr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bolt/runtime/instr.cpp b/bolt/runtime/instr.cpp
index accaa5676f3f..c5374c17c316 100644
--- a/bolt/runtime/instr.cpp
+++ b/bolt/runtime/instr.cpp
@@ -53,6 +53,7 @@
{}
#endif
+#pragma GCC visibility push(hidden)
extern "C" {