[DFSan] Add custom wrapper for _dl_get_tls_static_info.
authorMatt Morehouse <mascasa@google.com>
Thu, 10 Dec 2020 19:02:42 +0000 (11:02 -0800)
committerMatt Morehouse <mascasa@google.com>
Thu, 10 Dec 2020 19:03:28 +0000 (11:03 -0800)
commit72fd47b93d1165f7e4499a5c2b4241dae7ce82ae
treebc9959230670948cc5ee3b1e7a5c29853e3f76b8
parent00ffea77ad887b576e9db82d98c97a31fee172cb
[DFSan] Add custom wrapper for _dl_get_tls_static_info.

Implementation is here:
https://code.woboq.org/userspace/glibc/elf/dl-tls.c.html#307

We use weak symbols to avoid linking issues with glibcs older than 2.27.

Reviewed By: stephan.yichao.zhao

Differential Revision: https://reviews.llvm.org/D93053
compiler-rt/lib/dfsan/dfsan_custom.cpp
compiler-rt/lib/dfsan/done_abilist.txt
compiler-rt/test/dfsan/custom.cpp