[PATCH] D131982: [llvm-objdump] Complete -chained_fixups support

Daniel Bertalan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 11:07:04 PDT 2022


BertalanD created this revision.
BertalanD added reviewers: thakis, MaskRay.
Herald added subscribers: StephenFan, rupprecht, hiraditya.
Herald added a reviewer: jhenderson.
Herald added a project: All.
BertalanD requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This commit adds definitions for the `dyld_chained_import*` structs.
The imports array is now printed with `llvm-otool -chained_fixups`. This
completes this option's implementation.

A slight difference from cctools otool is that we don't yet dump the
raw bytes of the imports entries.

When Apple's effort to upstream their chained fixups code continues,
we'll replace this code with the then-upstreamed code. But we need
something in the meantime for testing ld64.lld's chained fixups code.


https://reviews.llvm.org/D131982

Files:
  llvm/include/llvm/BinaryFormat/MachO.h
  llvm/include/llvm/Object/MachO.h
  llvm/lib/Object/MachOObjectFile.cpp
  llvm/test/tools/llvm-objdump/MachO/chained-fixups.test
  llvm/tools/llvm-objdump/MachODump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131982.453075.patch
Type: text/x-patch
Size: 11599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220816/53accdbe/attachment.bin>


More information about the llvm-commits mailing list