| Index: tools/disasm.py
|
| diff --git a/tools/disasm.py b/tools/disasm.py
|
| index 681b4256dfe005058a409ea960377d6580579dd6..e8589b205bcae2ce52ef5fa529c1a40ec8bb7391 100644
|
| --- a/tools/disasm.py
|
| +++ b/tools/disasm.py
|
| @@ -53,7 +53,7 @@ _ARCH_MAP = {
|
| }
|
|
|
|
|
| -def GetDisasmLines(filename, offset, size, arch, inplace):
|
| +def GetDisasmLines(filename, offset, size, arch, inplace, objdump_flags=""):
|
| tmp_name = None
|
| if not inplace:
|
| # Create a temporary file containing a copy of the code.
|
| @@ -63,7 +63,8 @@ def GetDisasmLines(filename, offset, size, arch, inplace):
|
| command = "dd if=%s of=%s bs=1 count=%d skip=%d && " \
|
| "%s %s -D -b binary %s %s" % (
|
| filename, tmp_name, size, offset,
|
| - OBJDUMP_BIN, ' '.join(_COMMON_DISASM_OPTIONS), arch_flags,
|
| + OBJDUMP_BIN, ' '.join(_COMMON_DISASM_OPTIONS),
|
| + arch_flags + " " + objdump_flags,
|
| tmp_name)
|
| else:
|
| command = "%s %s --start-address=%d --stop-address=%d -d %s " % (
|
|
|