Index: tools/disasm.py |
diff --git a/tools/disasm.py b/tools/disasm.py |
index f409cb003e808986ef77784bcc91772ec805d578..a91d0dbff4d8b1e8c66779f7564b05c6af7ad82c 100644 |
--- a/tools/disasm.py |
+++ b/tools/disasm.py |
@@ -38,8 +38,10 @@ OBJDUMP_BIN = "/usr/bin/objdump" |
if not os.path.exists(OBJDUMP_BIN): |
OBJDUMP_BIN = "objdump" |
- |
-_COMMON_DISASM_OPTIONS = ["-M", "intel-mnemonic", "-C"] |
+# -M intel-mnemonic selects Intel syntax. |
+# -C demangles. |
+# -z disables skipping over sections of zeroes. |
+_COMMON_DISASM_OPTIONS = ["-M", "intel-mnemonic", "-C", "-z"] |
_DISASM_HEADER_RE = re.compile(r"[a-f0-9]+\s+<.*:$") |
_DISASM_LINE_RE = re.compile(r"\s*([a-f0-9]+):\s*(\S.*)") |