[PATCH] D91605: [sanitizers] Implement GetTls on Solaris

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 14 18:15:05 PST 2022


MaskRay added a comment.

`GetTls` is about the static TLS block size. It consists of the main executable's TLS, and initially loaded shared objects' TLS, `struct pthread`, and padding.
Solaris should be able to just use the code path like Linux musl:

  #elif SANITIZER_FREEBSD || SANITIZER_LINUX
    uptr align;
    GetStaticTlsBoundary(addr, size, &align);

I think NetBSD should use this code path as well, but I don't have NetBSD for testing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91605/new/

https://reviews.llvm.org/D91605



More information about the cfe-commits mailing list