summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-06-30 00:19:04 -0700
committerPetr Hosek <phosek@google.com>2021-07-01 15:25:31 -0700
commit33a7b4d9d8e6a113108aa71ed78ca32a83c68523 (patch)
tree56eb4c520a9e75641e2ddc961c009f31dc6ba091 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent14d64be6e54a23e1a20216b6a42ae2ce5926d2ed (diff)
[InstrProfiling] Use external weak reference for bias variable
We need the compiler generated variable to override the weak symbol of the same name inside the profile runtime, but using LinkOnceODRLinkage results in weak symbol being emitted which leads to an issue where the linker might choose either of the weak symbols potentially disabling the runtime counter relocation. This change replaces the use of weak definition inside the runtime with an external weak reference to address the issue. We also place the compiler generated symbol inside a COMDAT group so dead definition can be garbage collected by the linker. Differential Revision: https://reviews.llvm.org/D105176
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions