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.
Paths 
  |  Differential  D93053  
[DFSan] Add custom wrapper for _dl_get_tls_static_info. ClosedPublic Authored by morehouse on Dec 10 2020, 10:04 AM. 
Details Summary Implementation is here: We use weak symbols to avoid linking issues with glibcs older than 2.27. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Dec 10 2020, 10:43 AM This revision was landed with ongoing or failed builds.Dec 10 2020, 11:03 AM Closed by commit rG72fd47b93d11: [DFSan] Add custom wrapper for _dl_get_tls_static_info. (authored by morehouse).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 310962 compiler-rt/lib/dfsan/dfsan_custom.cpp
 compiler-rt/lib/dfsan/done_abilist.txt
 compiler-rt/test/dfsan/custom.cpp
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||