[PATCH] D100583: [llvm-objdump] Add an llvm-otool tool
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 15 11:08:17 PDT 2021
thakis created this revision.
thakis added a reviewer: MaskRay.
Herald added subscribers: rupprecht, mgorny.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a reviewer: jhenderson.
thakis requested review of this revision.
Herald added a project: LLVM.
This implements an LLVM tool that's flag- and output-compatible
with macOS's `otool` -- except for bugs, but from testing with both
`otool` and `xcrun otool-classic`, llvm-otool matches vanilla
otool's behavior very well already. It's not 100% perfect, but
it's a very solid start.
This uses the same approach as llvm-objcopy: llvm-objdump uses
a different OptTable when it's invoked as llvm-otool. This
is possible thanks to D100433 <https://reviews.llvm.org/D100433>.
https://reviews.llvm.org/D100583
Files:
llvm/test/lit.cfg.py
llvm/test/tools/llvm-objdump/MachO/AArch64/macho-link-opt-hints.test
llvm/test/tools/llvm-objdump/MachO/ARM/data-in-code.test
llvm/test/tools/llvm-objdump/MachO/ARM/mcpu-arm.test
llvm/test/tools/llvm-objdump/MachO/data-in-code.ll
llvm/test/tools/llvm-objdump/MachO/dis-no-leading-addr.test
llvm/test/tools/llvm-objdump/MachO/dis-symname.test
llvm/test/tools/llvm-objdump/MachO/dylib.test
llvm/test/tools/llvm-objdump/MachO/indirect-symbols.test
llvm/test/tools/llvm-objdump/MachO/info-plist.test
llvm/test/tools/llvm-objdump/MachO/macho-objc-meta-data.test
llvm/test/tools/llvm-objdump/MachO/private-headers.test
llvm/test/tools/llvm-objdump/MachO/relocations.test
llvm/test/tools/llvm-objdump/MachO/sections.test
llvm/test/tools/llvm-objdump/MachO/symbolized-disassembly.test
llvm/test/tools/llvm-objdump/MachO/universal-arm64.test
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objdump/CMakeLists.txt
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-objdump/MachODump.h
llvm/tools/llvm-objdump/ObjdumpOptID.h
llvm/tools/llvm-objdump/OtoolOpts.td
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/utils/gn/secondary/llvm/tools/llvm-objdump/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100583.337838.patch
Type: text/x-patch
Size: 34089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/8194dd3d/attachment.bin>
More information about the llvm-commits
mailing list