[OpenMP][Archer] Use dlsym rather than weak symbols for TSan annotations
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 24 Jan 2023 14:12:06 +0000 (15:12 +0100)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 24 Jan 2023 14:14:51 +0000 (15:14 +0100)
commit7fbf12210007a66f7b62beadc0e5a52561cc0ab3
treed6e3cf0b003c388b19dd6c60a4872e731b85248c
parentfeea695653df9879027e63c3565434fcb2020fba
[OpenMP][Archer] Use dlsym rather than weak symbols for TSan annotations

This patch fix issues reported for Ubuntu and possibly other platforms:
https://github.com/llvm/llvm-project/issues/45290

The latest comment on this issue points out that using dlsym rather than
the weak symbol approach to call TSan annotation functions fixes the issue
for Ubuntu.

Differential Revision: https://reviews.llvm.org/D142378
openmp/tools/archer/ompt-tsan.cpp