Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use so_names to prevent loading wrong abi (#56)
As stated in https://bugzilla.redhat.com/show_bug.cgi?id=1361037, "This is an application defect. If you're using a path it's expected you know what you're loading. One _should_ be using '#include <gnu/lib-names.h>' to get LIBC_SO and then dlopen that, it's the only supported solution, particularly consider distributions that might have /usr/lib64, or multi-arched lib dirs. You could be loading libc.so.6 from an incompatible ABI. Loding by SONAME is the only safe option."
- Loading branch information