Repository navigation
test(e2e): a link and a pack under a caller's XLINGS_SUBOS_LD_PATHS keep the run path mcpp derived - #1033
Open
speak-agent wants to merge 1 commit into
Open
test(e2e): a link and a pack under a caller's XLINGS_SUBOS_LD_PATHS keep the run path mcpp derived#1033speak-agent wants to merge 1 commit into
speak-agent wants to merge 1 commit into
Conversation
…eep the run path mcpp derived xlings' ld wrapper appends -rpath "$XLINGS_SUBOS_LIB" to a link of a non-system loader unless XLINGS_SUBOS_LD_PATHS=0, which mcpp declares for everything it starts. Two cases state what that holds from mcpp's side, with the caller's XLINGS_SUBOS_LD_PATHS=1 and a XLINGS_SUBOS_LIB of its own: - the programs the link starts (observed through gcc's -wrapper, which sees collect2, the linker's parent) and a build program read XLINGS_SUBOS_LD_PATHS=0, and the artifact's run path equals the -Wl,-rpath entries of the link line, without the caller's directory; - every ELF object a pack bundles names only $ORIGIN directories. The declaration is the one cli.cppm makes for the invocation; no spawn dropped it, so no code changes. Without the declaration the first case fails on both observations. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
This branch has not been deployed
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.
Task C1 of the xlings ecosystem plan (openxlings/xlings
.agents/docs/2026-11-27-ecosystem-truthful-results-and-architecture-design.md§8.3). Paired with openxlings/xlings#742 and openxlings/xim-pkgindex#1477.xlings'
ldwrapper (binutils r1, xim-pkgindex P6) appends-rpath "$XLINGS_SUBOS_LIB"when it links against a loader other than the system one, unlessXLINGS_SUBOS_LD_PATHS=0. mcpp already sets that0for everything it starts (src/cli.cppm). This PR adds the e2e cases that hold mcpp to it. A caller setsXLINGS_SUBOS_LD_PATHS=1and aXLINGS_SUBOS_LIBof its own, and the cases check two things:XLINGS_SUBOS_LD_PATHS=0. These are collect2 (observed through gcc's-wrapper) and a build program. The artifact's run path equals the link line's-Wl,-rpathentries and does not include the caller's directory.$ORIGINdirectories.No code changes: no spawn dropped the declaration. Without the declaration, the first case fails on both observations.