Repository navigation
feat(args): accept --library and --library-path, and make the mold skip reasons true (reld#14) - #158
Merged
Merged
Conversation
…ip reasons true (reld#14) Running the 47 `unsupported_options` mold tests against the native engine turned the group's blanket reason into per-test evidence. Two entries were wrong: `library.sh` needed no new feature at all, only the GNU long spellings of `-l` and `-L`, which the parser already supports everywhere else. It comes off the list. `color-diagnostics.sh` has not been about a missing option since reld#144: reld implements the flag and fails on a semantic difference, because a bare `--color-diagnostics` means `always` in reld and ld.lld — verified against ld.lld — while mold reads it as `auto`. It moves to the `ignore` group. The rest keep their skip but now name the exact option the parser rejects, so the burn-down aims at a flag instead of a test. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 17, 2026
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 #14 (Wave 2 of #153). Does not close it — 46 entries remain.
What this is based on
I ran all 47
unsupported_optionsmold tests against the native engine with the group temporarily un-skipped, and read the actual failure of each. That turned a blanket group reason into per-test evidence, and two entries turned out to be wrong.library.shcomes off the listIt needed no new feature: only the GNU long spellings
--library/--library-pathfor-l/-L, in both the separated and the=form. The parser's long-option path already routes to the same handler, so-l:libfoo.asemantics come along for free. One declaration line each, plus a unit test that asserts the long forms parse identically to the short ones.color-diagnostics.shis misfiled, not unimplementedreld has implemented
--color-diagnosticssince #144. The test fails on a semantic difference: a bare--color-diagnosticsmeansalwaysin reld and in ld.lld, so it colors a pipe, while mold reads it asauto. Verified directly againstld.lld:reld follows lld here, so this belongs in
ignorewith the other GNU-family semantic divergences, not in "does not yet implement".The other 45 keep their skip but name the flag
Each now carries the exact option the parser rejects (
--emit-relocs,-Map,--image-base,-warn-common,--undefined-glob, …). A stale reason sends the burn-down at the wrong flag, which is how--librarysat here as a missing feature.Three entries look like they pass locally —
omagic.sh,undefined-glob.sh,undefined-glob-gc-sections.sh— but only because they open withtest_cflags -static || skipand this host has no static glibc. They stay.Verification
cargo test -p reld-core --lib args::elf::tests::library_and_library_path_long_forms_match_the_short_ones— passeslibrary.shnow passes. The four failures (rpath.sh,sframe.sh,trace.sh,weak-export-dso2.sh) fail identically before this change — NixOS host noise, not a regression.cargo fmt --all -- --check,cargo clippy -p reld-core --all-targets -- -D warnings— clean🤖 Generated with Claude Code