public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5222] libsanitizer: Fix asan SEGVs with gld on Solaris
@ 2023-01-17  9:56 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2023-01-17  9:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:85b45cccdf5f2442e791969abbffffbb2676591f

commit r13-5222-g85b45cccdf5f2442e791969abbffffbb2676591f
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Jan 17 10:56:20 2023 +0100

    libsanitizer: Fix asan SEGVs with gld on Solaris
    
    When using GNU ld on Solaris, a large number of asan tests SEGV, while
    Solaris ld is fine.  This happens inside the __tls_get_addr interceptor,
    which is highly glibc-specific.  Therefore this patch disables that
    interceptor.
    
    Posted upstream at https://reviews.llvm.org/D141385.
    
    Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11.
    
    2023-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            libsanitizer:
            * sanitizer_common/sanitizer_platform_interceptors.h: Cherry-pick
            llvm-project revision 951cf656b2faaf6fc0baa867293c0cb0ab131951.

Diff:
---
 libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
index 6e3081ec1fc..8307b1ec28b 100644
--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
@@ -405,7 +405,7 @@
   (SI_FREEBSD || SI_NETBSD || SI_GLIBC || SI_SOLARIS)
 
 #define SANITIZER_INTERCEPT_TLS_GET_ADDR \
-  (SI_FREEBSD || SI_NETBSD || SI_LINUX_NOT_ANDROID || SI_SOLARIS)
+  (SI_FREEBSD || SI_NETBSD || SI_LINUX_NOT_ANDROID)
 
 #define SANITIZER_INTERCEPT_LISTXATTR SI_LINUX
 #define SANITIZER_INTERCEPT_GETXATTR SI_LINUX

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-17  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17  9:56 [gcc r13-5222] libsanitizer: Fix asan SEGVs with gld on Solaris Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).