]> 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, 15 Feb 2022 10:18:56 +0000 (11:18 +0100)
commitc4c0aa60891daeb4ea5a7c265bd681038f6d8271
tree9b1c1346d4e113f35e571099a3c797b7a062626d
parent6a0d6e7ca9b9e338e82572db79c26168684a7441
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.
libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp
This page took 0.054205 seconds and 5 git commands to generate.