Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DAT_<address> is shown instead of selector when working with dyld shared cache #7289

Open
lukele opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
Feature: Loader/Mach-O Status: Triage Information is being gathered

Comments

@lukele
Copy link

lukele commented Dec 16, 2024

Describe the bug
In my instances DAT_<address> is shown instead of the selector that is being invoked when working with the dyld_shared_cache.

Screenshot 2024-12-16 at 15 04 09

Using blacktop's ipsw however the selector can be read, so it is available:

./ipsw dyld a2s /System/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64  7ffb404adb00            
   • Address location          dylib=/System/Library/Frameworks/MailKit.framework/Versions/A/MailKit section=__DATA_CONST.__objc_selrefs
0x7ffb404adb00: sel_init

When right clicking the address and going to References there's also no option to "Add To Program" as was suggested in an article when dealing with the dsc.

To Reproduce
Steps to reproduce the behavior:

  1. Go to File › Open File System
  2. Select the /System/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64
  3. Select MailKit as library to import
  4. Choose Format Mac OS X Mach-O and in Options select Load Libraries from Disk to pull in all dependencies
  5. Decompile method -[MEDecodeContext_initWithCoder:]
  6. See DAT_7ffb404adb00 instead of the selector being called

Expected behavior
When the selector / string information is available, that should be shown instead of DAT_<address>

Environment (please complete the following information):

  • OS: macOS 15.2 (24C101)
  • Java Version: OpenJDK Runtime Environment Temurin-23.0.1+11 (build 23.0.1+11)
  • Ghidra Version: 11.2.1
  • Ghidra Origin: official GitHub distro

Additional context
Apologies for not using the correct terminology.

@ryanmkurtz ryanmkurtz self-assigned this Dec 17, 2024
@ryanmkurtz ryanmkurtz added Feature: Loader/Mach-O Status: Triage Information is being gathered labels Dec 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature: Loader/Mach-O Status: Triage Information is being gathered
Projects
None yet
Development

No branches or pull requests

2 participants