chore: bump libloading from 0.6.2 to 0.7.0 (#17704)

* chore: bump libloading from 0.6.2 to 0.7.0

Bumps [libloading](https://github.com/nagisa/rust_libloading) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/nagisa/rust_libloading/releases)
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.6.2...0.7.0)

---
updated-dependencies:
- dependency-name: libloading
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

* New libloading methods are marked unsafe

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
dependabot[bot]
2021-06-03 18:08:31 -06:00
committed by GitHub
parent 47861fc373
commit 3dcc8e0046
4 changed files with 11 additions and 17 deletions

View File

@ -24,7 +24,7 @@ fnv = "1.0.7"
itertools = "0.9.0"
lazy_static = "1.4.0"
libc = "0.2.81"
libloading = "0.6.2"
libloading = "0.7.0"
log = "0.4.11"
memmap2 = "0.2.3"
num-derive = { version = "0.3" }

View File

@ -93,13 +93,15 @@ impl NativeLoader {
#[cfg(windows)]
fn library_open(path: &Path) -> Result<Library, libloading::Error> {
Library::new(path)
unsafe { Library::new(path) }
}
#[cfg(not(windows))]
fn library_open(path: &Path) -> Result<Library, libloading::Error> {
// Linux tls bug can cause crash on dlclose(), workaround by never unloading
Library::open(Some(path), libc::RTLD_NODELETE | libc::RTLD_NOW)
unsafe {
// Linux tls bug can cause crash on dlclose(), workaround by never unloading
Library::open(Some(path), libc::RTLD_NODELETE | libc::RTLD_NOW)
}
}
fn get_entrypoint<T>(