OpenBSD: add RTLD_NODELETE and RTLD_NOLOAD - #5377
Merged
Merged
Conversation
Collaborator
This comment has been minimized.
This comment has been minimized.
iamhaseebn
force-pushed
the
fix-openbsd-dlopen-modes
branch
from
August 6, 2026 08:04
5034e6e to
05a9477
Compare
iamhaseebn
force-pushed
the
fix-openbsd-dlopen-modes
branch
from
August 6, 2026 14:33
05a9477 to
d9f92c2
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
JohnTitor
approved these changes
Aug 6, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Aug 6, 2026
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Aug 31, 2026
OpenBSD source: https://github.com/openbsd/src/blob/8bdaccf9d69425873152d3ed5dfe9a5e9f6b26d8/include/dlfcn.h#L42-L49 Fixes rust-lang#5318 (backport <rust-lang#5377>) (cherry picked from commit b37a8de)
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the OpenBSD
RTLD_NODELETEandRTLD_NOLOADbindings using the values fromdlfcn.h, and adds both constants to the OpenBSD semver list.Fixes #5318.
Verification
python3 ci/style.pycargo test --workspacepython3 ci/verify-build.py --toolchain nightly --only '^(aarch64|i686|x86_64)-unknown-openbsd$' --skip-semver true(all five feature configurations for each target)Checklist
libc-test/semverhave been updated*LASTor*MAXhave the standard doc comment (not applicable; these are fixeddlfcn.hflag values)@rustbot label +stable-nominated