Repository navigation
feat(core): lld-format undefined-symbol errors with referencing object and demangled name (#193) - #199
Merged
Conversation
…t and demangled name (#193) 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.
Closes #193
Undefined-symbol diagnostics now use lld's layout:
diagnostic.rs: lld-style formatters. These cover theundefined [hidden |protected ]symbol:header, the>>> referenced bylines and the file:line line (lld'screateFileLineMsg), plusin archive Xand>>> referenced N more times. The shared-library check now printsundefined reference: ... (disallowed by --no-allow-shlib-undefined).layout.rs: references are collected while relocations are scanned, then grouped per symbol in a fixed order. Names are demangled by default, and--no-demanglekeeps the mangled name.undefined-symbol-lld-format, run as three configs: demangled,--no-demangle, and-gwith a source location.demangle,unresolved-symbols,warn-unresolved-symbols,z-defs,missing-errorandweak-undef2, which now pass. The skip reasons for the remaining related entries now describe the actual failures.Local validation (x86_64 Linux host)
cargo fmt --all -- --check,cargo clippy -p reld-core/-p reld --all-targets -D warnings: cleancargo test -p reld-core --lib: 260 passedundefined-symbol-lld-format,source-info-from-debug,undef-transitive,shlib-undefined,undefined-with-gc-refsandundefined-weak-and-strong. Across the full suite, 11 fixtures fail, and they are the known static-glibc baseline on this host.phase1-nativelane was not run, because this change touches no CI or phase1 behaviour.Follow-up (already there before this change, not introduced here): the parenthetical path in
>>> referenced bycomes from the existingget_source_info. For an absolute DWARF5 file name that hasdir_index != 0, it joins the name withcomp_dirinstead of the file's own directory entry.🤖 Generated with Claude Code