[PATCH] D78032: [llvm-objdump] Default to the "apple-latest" mcpu when disassembling arm64 Mach-O binaries

Michael Trent via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 11:18:13 PDT 2020


mtrent added a comment.

In D78032#1978299 <https://reviews.llvm.org/D78032#1978299>, @MaskRay wrote:

> In GNU objdump, `-m` is another option which takes an argument.
>
>   -m machine
>    --architecture=machine
>        Specify the architecture to use when disassembling object files.  This can be useful when disassembling object files which do not
>        describe architecture information, such as S-records.  You can list the available architectures with the -i option.
>   
>        If the target is an ARM architecture then this switch has an additional effect.  It restricts the disassembly to only those
>        instructions supported by the architecture specified by machine.  If it is necessary to use this switch because the input file does not
>        contain any architecture information, but it is also desired to disassemble all the instructions use -marm.
>   
>
> Would it be possible to remove the `-m` alias for `--macho`?


I don't know. Maybe the time has come to remove otool from llvm and just let llvm be a copy of the gnu binutils. Feels like a topic for another thread.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78032/new/

https://reviews.llvm.org/D78032





More information about the llvm-commits mailing list