From 7f1bd4ae95fc05c448c790739b420c435001b10b Mon Sep 17 00:00:00 2001 From: Marsman1996 Date: Wed, 18 Aug 2021 14:55:43 +0800 Subject: [PATCH] change label format from .L%x to .L%d --- librw/container.py | 2 +- librw/rw.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librw/container.py b/librw/container.py index 1683b2ce..f7c568d0 100644 --- a/librw/container.py +++ b/librw/container.py @@ -188,7 +188,7 @@ def __str__(self): continue if instruction.address in self.bbstarts: - results.append(".L%x:" % (instruction.address)) + results.append(".L%d:" % (instruction.address)) results.append(".LC%x:" % (instruction.address)) else: results.append(".LC%x:" % (instruction.address)) diff --git a/librw/rw.py b/librw/rw.py index 4404c8f9..f16a52e4 100644 --- a/librw/rw.py +++ b/librw/rw.py @@ -187,7 +187,7 @@ def symbolize_cf_transfer(self, container, context=None): # Check if the target is in .text section. if container.is_in_section(".text", target): function.bbstarts.add(target) - instruction.op_str = ".L%x" % (target) + instruction.op_str = ".L%d" % (target) elif target in container.plt: instruction.op_str = "{}@PLT".format( container.plt[target])