summaryrefslogtreecommitdiff
path: root/tools/check_cfi.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check_cfi.py')
-rwxr-xr-xtools/check_cfi.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/check_cfi.py b/tools/check_cfi.py
index 60d6c1b296..83ee363ba5 100755
--- a/tools/check_cfi.py
+++ b/tools/check_cfi.py
@@ -149,10 +149,18 @@ Asm = collections.namedtuple("Asm", ["pc", "name", "data"])
def get_asm(lib: pathlib.Path) -> List[Asm]:
""" Get all ASM blocks (in dumped text-based format) """
- proc = subprocess.run([args.objdump, "--disassemble", "--no-show-raw-insn", lib],
- encoding='utf-8',
- capture_output=True,
- check=True)
+ proc = subprocess.run(
+ [
+ args.objdump,
+ "--disassemble",
+ "--no-show-raw-insn",
+ "--disassemble-zeroes",
+ lib,
+ ],
+ encoding="utf-8",
+ capture_output=True,
+ check=True,
+ )
section_re = re.compile("\n(?! |\n)", re.MULTILINE) # New-line not followed by indent.
sym_re = re.compile("([0-9a-f]+) <(.+)>:")