Skip to content

OpenBSD: add RTLD_NODELETE and RTLD_NOLOAD - #5377

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
iamhaseebn:fix-openbsd-dlopen-modes
Aug 7, 2026
Merged

OpenBSD: add RTLD_NODELETE and RTLD_NOLOAD#5377
tgross35 merged 1 commit into
rust-lang:mainfrom
iamhaseebn:fix-openbsd-dlopen-modes

Conversation

@iamhaseebn

@iamhaseebn iamhaseebn commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the OpenBSD RTLD_NODELETE and RTLD_NOLOAD bindings using the values from dlfcn.h, and adds both constants to the OpenBSD semver list.

Fixes #5318.

Verification

  • python3 ci/style.py
  • cargo test --workspace
  • python3 ci/verify-build.py --toolchain nightly --only '^(aarch64|i686|x86_64)-unknown-openbsd$' --skip-semver true (all five feature configurations for each target)

Checklist

  • Relevant tests in libc-test/semver have been updated
  • Commit messages permalink to headers for added or changed API
  • Placeholder or unstable values like *LAST or *MAX have the standard doc comment (not applicable; these are fixed dlfcn.h flag values)
  • Tested locally

@rustbot label +stable-nominated

@rustbot

rustbot commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in an OpenBSD module

cc @semarie

Some changes occurred in a NetBSD-like module

cc @semarie

@rustbot rustbot added O-bsd O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 6, 2026
@rustbot

This comment has been minimized.

@iamhaseebn
iamhaseebn force-pushed the fix-openbsd-dlopen-modes branch from 5034e6e to 05a9477 Compare August 6, 2026 08:04

@semarie semarie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamhaseebn
iamhaseebn force-pushed the fix-openbsd-dlopen-modes branch from 05a9477 to d9f92c2 Compare August 6, 2026 14:33
@rustbot

rustbot commented Aug 6, 2026

Copy link
Copy Markdown
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 JohnTitor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnTitor
JohnTitor added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@tgross35
tgross35 added this pull request to the merge queue Aug 7, 2026
Merged via the queue into rust-lang:main with commit b37a8de Aug 7, 2026
57 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
@tgross35 tgross35 mentioned this pull request Sep 4, 2026
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-bsd O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenBSD: Missing dlopen modes

5 participants