Repository navigation
fix(native): retain nm-proven literal export names - #807
Closed
rudycelekli wants to merge 1 commit into
Closed
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
Owner
|
Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated! |
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.
Summary
Use the exact export names captured by the same inspection's
nmcommand to distinguish literal bracket suffixes from dyld annotations. A valid Clang asm symbol namedsymbol [weak-def]currently creates an invented weak exportsymbol, while the actual full name loses its address in the nm fallback.Where nm establishes the full literal name only, preserve that identity and its dyld address. Where nm establishes both the short and full names, keep their exact nm identities and leave the ambiguous row's address/flags unknown. Annotation parsing without nm evidence, imports and reexports retain their existing behavior.
Validation
NativeMacOSProvider.inspect_macho: the literal-name case reports four exports for the actual three before; after it reports the exact three and preserves the real weak-export control.npm run checkpasses (129 existing warnings, zero errors);npm run check:fastpasses.Native proof is macOS arm64 with Apple's Clang/dyld_info/nm. Exports retain their existing incomplete-coverage declaration; no Hopper/Ghidra or other OS coverage is claimed. Hosted CI is separate. No schema changes.
AI assistance was used for investigation, implementation and tests; I reviewed the source and native results.