Bug 25358 - objdump doesn't parse mach-o indirect stubs in disassembly
Summary: objdump doesn't parse mach-o indirect stubs in disassembly
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.33
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-09 19:30 UTC by cand
Modified: 2020-01-09 19:30 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cand 2020-01-09 19:30:22 UTC
When using objdump to disassemble Mac (x86_64 mach-o) binaries, I couldn't get it to display the function names for indirect stub calls like on Linux, with -r/-R or any of the -P options. However the -P options show objdump does have the info, it's just not finding its way to the disassembly.

   100000de7:   e8 5c 26 00 00          callq  100003448 <__ZL20fixStringForCoreDataP11objc_object+0
x1a0>

Here 100003448 is in the stubs section, and with the info there and in other sections objdump could show what function is being called.