[PATCH] D84191: [llvm-objdump] Symbolize binary addresses for low-noisy asm diff.

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 13 18:00:39 PDT 2021


hoy added inline comments.


================
Comment at: llvm/test/tools/llvm-objdump/X86/elf-disassemble-symbololize-operands.yaml:2
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objdump %t -d --symbolize-operands --x86-asm-syntax=intel --no-show-raw-insn --no-leading-addr | \
+# RUN:   FileCheck %s --match-full-lines --check-prefix=INTEL
----------------
thakis wrote:
> Does `--x86-asm-syntax=intel` do something different from `-M Intel`? The latter is the normal objdump name for this, so I'm wondering if the flag doesn't do what you need, or if you didn't use it for a different reason.
I didn't realize `-M Intel` worked with llvm-objdump. It worked with objdump though.

   llvm-objdump -d -M Intel a.out
   a.out:	file format elf64-x86-64
   llvm-objdump: error: 'a.out': Unrecognized disassembler option: Intel

Am I missing anything?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84191



More information about the llvm-commits mailing list