[PATCH] D56083: [llvm-objdump] - Implement -z/--disassemble-zeroes
Simon Atanasyan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 26 06:17:40 PST 2018
atanasyan added inline comments.
================
Comment at: test/ELF/mips-26.s:9
# RUN: ld.lld %t1.o %t.so -o %t.exe
-# RUN: llvm-objdump -d %t.exe | FileCheck %s
+# RUN: llvm-objdump -d -z %t.exe | FileCheck %s
# RUN: llvm-readobj -dynamic-table -s -r -mips-plt-got %t.exe \
----------------
Output of `llvm-objdump` without `-z` option for at least this test case looks strange:
```
__start:
20008: 0c 00 80 00 jal 131072 <bar>
2000c: 00 00 00 00 nop
20010: 0c 00 80 10 jal 131136 <foo0+0x20040>
...
20018: 00 00 00 00 nop
loc:
20018: 00 00 00 00 nop
```
We skip the first `nop` at 20014 offset, but show `nop` at 20018 twice. I apply the patch at r350033.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56083/new/
https://reviews.llvm.org/D56083
More information about the llvm-commits
mailing list