aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-11-20 18:07:52 +0000
committerKamil Rytarowski <n54@gmx.com>2017-11-20 18:07:52 +0000
commit60cc1d3218fcecef98d307cee1a197d4649ccbfd (patch)
treea61fa9d153e6b17c19da310007a1e96d6de52376 /llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
parent164186617ec9906a6cf134684a94c371fd34e18b (diff)
downloadllvm-60cc1d3218fcecef98d307cee1a197d4649ccbfd.zip
llvm-60cc1d3218fcecef98d307cee1a197d4649ccbfd.tar.gz
llvm-60cc1d3218fcecef98d307cee1a197d4649ccbfd.tar.bz2
Handle NetBSD specific indirection of libpthread functions
Summary: Correct handling of libpthread(3) functions in TSan/NetBSD: - pthread_cond_init(3), - pthread_cond_signal(3), - pthread_cond_broadcast(3), - pthread_cond_wait(3), - pthread_cond_destroy(3), - pthread_mutex_init(3), - pthread_mutex_destroy(3), - pthread_mutex_trylock(3), - pthread_rwlock_init(3), - pthread_rwlock_destroy(3), - pthread_rwlock_rdlock(3), - pthread_rwlock_tryrdlock(3), - pthread_rwlock_wrlock(3), - pthread_rwlock_trywrlock(3), - pthread_rwlock_unlock(3), - pthread_once(3). Code out of the libpthread(3) context uses the libc symbols that are prefixed with __libc_, for example: __libc_cond_init. This caused that these functions were invisible to sanitizers on NetBSD. Intercept the libc-specific ones and add them as NetBSD-specific aliases for the common pthread(3) ones. NetBSD needs to intercept both functions, as the regularly named ones are used internally in libpthread(3). Sponsored by <The NetBSD Foundation> Reviewers: joerg, dvyukov, vitalybuka Reviewed By: dvyukov Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D40243 llvm-svn: 318673
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions