Repository navigation
fix(bridge): classify reld-only flags as NativeControl or Stripped (reld#123 D6) - #135
Merged
Merged
Conversation
…eld#123 D6) reld-only options leaked through to lld on a routed link and were rejected (`--sym-info=x --icf=all` forwarded `--sym-info`, `--time --icf=all` forwarded `--time`). Split them per reld#123 D6: - NativeControl (force native, conflict loudly when a routed requirement is also present): add `--sym-info[=name]` to the existing validate-output / write-layout / write-trace set. - Stripped (dropped from the forwarded argv): `--update-in-place`, `--time`, `--mmap-output-file`, `--no-mmap-output-file`, `--fallocate-output-file`, `--no-fallocate-output-file`, `--madvise-huge-pages`, `--no-madvise-huge-pages`, `--threads`, `--no-threads`, `--no-fork`, `--fork`. Nothing reld-only reaches a child linker. Co-Authored-By: Claude Code <[email protected]>
9 of 31 tasks
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.
What
Implements the reld#123 D6 item: every reld-only option is
NativeControlorStripped, so nothing reld-only reaches a child linker.Before this, a routed link forwarded reld-only flags to
lldand was rejected:--sym-info=x --icf=allforwarded--sym-info=x→ lld rejects it.--time --icf=allforwarded--time→ lld rejects it.Change
--sym-info[=name]to the existing--validate-output/--write-layout/--write-traceset.--update-in-place,--time,--mmap-output-file,--no-mmap-output-file,--fallocate-output-file,--no-fallocate-output-file,--madvise-huge-pages,--no-madvise-huge-pages,--threads,--no-threads,--no-fork,--fork.--time/--threadsalso drop a following value token when spelled--flag value.Verification
cargo test -p reld-core --lib bridge::tests— 51 pass.cargo clippy -p reld-core --all-targets -- -D warnings— clean.cargo fmt --check— clean.Notes
--enginewas already consumed before parsing and is not forwarded.Strippedflags are dropped silently today; aRELD_LOG_ENGINEnote when a flag is dropped is a Phase 5 observability item (reld#123 D5), not done here.🤖 Generated with Claude Code