[PATCH] D30107: Refactor DynamicLibrary so searching for a symbol will have a defined order and libraries are properly unloaded when llvm_shutdown is called.

Vassil Vassilev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 10:41:33 PDT 2017


v.g.vassilev added a comment.

>From what I see the OS resolves the symbol dependent on the position of the request. If the request comes from a shared library it has to start looking for the symbols local to the library first. I don't think we can get the position of the request so in order to get closer behavior (avoiding to specialcase the dlopen flags) we should put the executable as a last resort... This would also allow the shared libraries to overload weak symbols...


Repository:
  rL LLVM

https://reviews.llvm.org/D30107





More information about the llvm-commits mailing list