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])