diff options
author | Alexander Richardson <alexrichardson@google.com> | 2024-03-08 22:09:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 22:09:10 -0800 |
commit | 578e66ac45dfcc5c739f3525bfb82d71282d925c (patch) | |
tree | 525cdda5e3f664e95db8664ea7f387d8d368f330 /llvm/lib/Object/ArchiveWriter.cpp | |
parent | 6c765069112e31ec66cd4387f2a39f70583e626b (diff) | |
download | llvm-578e66ac45dfcc5c739f3525bfb82d71282d925c.zip llvm-578e66ac45dfcc5c739f3525bfb82d71282d925c.tar.gz llvm-578e66ac45dfcc5c739f3525bfb82d71282d925c.tar.bz2 |
[tsan] Intercept __tls_get_addr_earlier
This can be useful because dlsym() may call malloc on failure which could
result in other interposed functions being called that could eventually
make use of TLS. While the crash that I experienced originally has been
fixed differently (by not using global-dynamic TLS accesses in the mutex
deadlock detector, see https://github.com/llvm/llvm-project/pull/83890),
moving this interception earlier is still a good since it makes the code
a bit more robust against initialization order problems.
Reviewed By: MaskRay, vitalybuka
Pull Request: https://github.com/llvm/llvm-project/pull/83886
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions