]> gcc.gnu.org Git - gcc.git/commit
sanitizer: Use glibc _thread_db_sizeof_pthread symbol if present
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Feb 2022 10:18:56 +0000 (11:18 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 10 May 2022 08:14:33 +0000 (10:14 +0200)
commitfefb97a53606fad6060e217b9b642dbbd3a1e299
tree945e3e35017519529cf4d0973f65db2b2f42b5ec
parentd028f4313ae55837b30bec6b737c92a229b4f23d
sanitizer: Use glibc _thread_db_sizeof_pthread symbol if present

I've cherry-picked following fix from llvm-project.  Recent glibcs
have _thread_db_sizeof_pthread symbol variable which contains the
size of struct pthread, so that sanitizers don't need to guess that
and risk that it will change again.

2022-02-15  Jakub Jelinek  <jakub@redhat.com>

* sanitizer_common/sanitizer_linux_libcdep.cpp: Cherry-pick
llvm-project revision ef14b78d9a144ba81ba02083fe21eb286a88732b.

(cherry picked from commit c4c0aa60891daeb4ea5a7c265bd681038f6d8271)
libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp
This page took 0.057207 seconds and 6 git commands to generate.