diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-10-05 22:53:17 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2017-10-05 22:53:17 +0000 |
commit | 2d21e8df3faee7f35589618ac36ad71d2c20908a (patch) | |
tree | 48bddbd5f6919e36019db92efc22e7e07b4e8bde /lib/lsan/lsan_common.cc | |
parent | 590a32da41f486f5d834ccc9af1d337565b6a675 (diff) |
Revert "[LSan] Detect dynamic loader by its base address."
This reverts commit r315024.
Breaks sysconf_interceptor_bypass_test.cc
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_common.cc')
-rw-r--r-- | lib/lsan/lsan_common.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lsan/lsan_common.cc b/lib/lsan/lsan_common.cc index 651bbe1f3..622aae734 100644 --- a/lib/lsan/lsan_common.cc +++ b/lib/lsan/lsan_common.cc @@ -411,9 +411,8 @@ static void MarkInvalidPCCb(uptr chunk, void *arg) { } } -// On Linux, treats all chunks allocated from ld-linux.so as reachable, which -// covers dynamically allocated TLS blocks, internal dynamic loader's loaded -// modules accounting etc. +// On Linux, handles dynamically allocated TLS blocks by treating all chunks +// allocated from ld-linux.so as reachable. // Dynamic TLS blocks contain the TLS variables of dynamically loaded modules. // They are allocated with a __libc_memalign() call in allocate_and_init() // (elf/dl-tls.c). Glibc won't tell us the address ranges occupied by those |