[PATCH] D15728: [cfi] Support for dlopen and dlclose
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 13:13:46 PST 2016
eugenis updated this revision to Diff 44918.
eugenis added a comment.
A new approach.
dlclose may unmap (and dlopen may map) multiple libraries, so we actually need to do the entire dl_iterate_phdr run and update all libraries. For dlclose, we also need to detect libraries that have disappeared from the address space, so we do dl_iterate_phdr before and after dlclose and compare the results.
Repository:
rL LLVM
http://reviews.llvm.org/D15728
Files:
lib/cfi/cfi.cc
lib/sanitizer_common/sanitizer_common.cc
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_linux_libcdep.cc
test/cfi/cross-dso/dlopen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15728.44918.patch
Type: text/x-patch
Size: 16580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/c8e9a0a1/attachment.bin>
More information about the llvm-commits
mailing list