Skip to content

fix(native): retain nm-proven literal export names - #807

Closed
rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/dyld-export-literal-names-20261006
Closed

rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/dyld-export-literal-names-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

Summary

Use the exact export names captured by the same inspection's nm command to distinguish literal bracket suffixes from dyld annotations. A valid Clang asm symbol named symbol [weak-def] currently creates an invented weak export symbol, 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

  • Actual Clang-built Mach-O dylib and public 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.
  • A second real dylib exports both interpretations. After, both exact names remain, with ambiguous address/weak fields null rather than guessed.
  • 27 focused native parser/provider tests pass.
  • Exact signed head npm run check passes (129 existing warnings, zero errors); npm run check:fast passes.

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.

@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated!

@morluto morluto closed this Oct 7, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants