[PATCH] D40159: Make static TLS/NetBSD handling more generic

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 07:44:06 PST 2017


joerg added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_linux_libcdep.cc:421
+    // Find size (p_memsz) of dlpi_tls_modid 1 (static TLS vector) and set size
+    dl_iterate_phdr(GetSizeFromHdr, size);
+  }
----------------
The index 1 is not used for the static vector, but the TLS block of the main program. It will be unset of the main program has no TLS segment.


Repository:
  rL LLVM

https://reviews.llvm.org/D40159





More information about the llvm-commits mailing list