Repository navigation
test(acceptance): activate NoDynamic so the RPATH tag is actually pinned (reld#123) - #164
Merged
Merged
Conversation
…ned (reld#123) `NoDynamic` was fully implemented — parsed into `absent_dynamic_entries` and checked in `verify_dynamic_entries` — but still listed as a deferred legacy directive, and a deferred directive silently skips the whole fixture. So `new-dtags` never ran. reld's DT_RUNPATH/DT_RPATH behaviour, which the fixture exists to pin, was untested in both directions. Removing it from the deferred list and adding it to the frozen surface makes all three configurations run. The third is new: the default, with neither `--enable-new-dtags` nor `--disable-new-dtags`, which is the tag a caller gets from a bare `-rpath`. reld emits DT_RUNPATH there, matching ld.lld — verified against ld.lld — and that is `rpath_tag_default_documented` on the reld#123 Phase 2 checklist. `pack-relative-relocs` also uses `NoDynamic` but stays skipped on `DoesNotContain` and `LinkSoArgs`, which are separate directives. Acceptance: 215 passed, up from 212, with the same 11 pre-existing environmental failures this host has on main. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
11 of 20 tasks
Running `new-dtags` for the first time made its own ratchet fire: the `old-dtags` configuration carried `.dynamic.DT_FLAGS_1.NOW`, and with the fixture actually executing, the oracle reports no such difference. The ratchet's message is "remove it from the fixture", so it is removed. That is the second thing the fixture being skipped was hiding, after the RPATH behaviour itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Advances #123 (Wave 1 of #153): ticks
rpath_tag_default_documentedon the Phase 2 checklist.A test that was not running
NoDynamicis fully implemented — parsed intoabsent_dynamic_entries, checked inverify_dynamic_entries— but it was still listed inis_deferred_legacy_directive, and a deferred directive silently skips the entire fixture. Socrates/reld/tests/sources/elf/new-dtags/new-dtags.cnever ran. reld's DT_RUNPATH / DT_RPATH behaviour, the only thing that fixture exists to pin, was untested in both directions while looking covered.(This is the same trap that hid a fixture during #155: a directive on the deferred list takes the whole file with it.)
What changes
NoDynamicmoves off the deferred list and onto the frozen directive surface. No new implementation was needed; the verifier was already there.--enable-new-dtagsnor--disable-new-dtags. That is the tag a caller gets from a bare-rpath, and it was the one case the fixture did not describe. reld emitsDT_RUNPATH, matching ld.lld:The fixture also records why the distinction matters (RUNPATH is not transitive;
LD_LIBRARY_PATHtakes precedence over it), so the property is documented where the person changing it will read it.pack-relative-relocsalso usesNoDynamic, but stays skipped onDoesNotContainandLinkSoArgs— separate directives, separate work.Verification
cargo test --test acceptance: 215 passed, up from 212, with the same 11 pre-existing environmental failures this NixOS host produces onmain(no static glibc). The three new tests areelf/x86_64/new-dtags/{default-dtags,new-dtags,old-dtags}.🤖 Generated with Claude Code