Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtld: Use breadth-first search order #1238

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lzcunt
Copy link
Contributor

@lzcunt lzcunt commented Feb 1, 2025

WIP I haven't actually implemented the fix yet just working on making a simple test that reproduces the issue.

Related to #1196, might fix the systemd issue but doesn't actually implement RPATH inheritance, simply makes RTLD search breadth-first. Will fix the libgcc_s.so.1 issue in nixpkgs. Adds a test for verifying the search order however that test currently erroneously passes when it should fail because of issues with meson. Running it outside of meson (and manually patchelf'ing to remove the RUNPATH in libbar) reproduces the issue (libfoo is not found in mlibc, correctly found in glibc).

@lzcunt lzcunt changed the title Use BFS in RTLD rtld: Use breadth-first search order Feb 1, 2025
This allows test subdirs in tests/rtld to conditionally skip, e.g. when
patchelf is needed to build a test and not found.
@lzcunt lzcunt force-pushed the rtld-search-order branch 2 times, most recently from c45b435 to c52988c Compare February 2, 2025 18:13
@lzcunt lzcunt force-pushed the rtld-search-order branch from c52988c to 73c8f83 Compare February 2, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant