diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-06-13 13:37:02 -0400 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-06-13 13:37:02 -0400 |
commit | 794b0a1a9b10eb218f93bacee344c33e70e038d1 (patch) | |
tree | 82e4b36521341f4b7c1ac3cbaef04dcb77636a43 | |
parent | ed41e2b95e854695a8ff67a30b28ad59dfe2195c (diff) |
Add 0x to sym value for readelf.py
-rw-r--r-- | tools/analyze_source/readelf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/analyze_source/readelf.py b/tools/analyze_source/readelf.py index 0e36777b4..a275b0a4b 100644 --- a/tools/analyze_source/readelf.py +++ b/tools/analyze_source/readelf.py @@ -79,7 +79,7 @@ if __name__ == "__main__": sorted_syms = sorted(syms, key=lambda kv: kv.value) for sym_info in sorted_syms: if SIMPLE: - sym_dump_output += f"{sym_info.value:08x} {sym_info.name} (size: 0x{sym_info.size:x})\n" + sym_dump_output += f"0x{sym_info.value:08x} {sym_info.name} (size: 0x{sym_info.size:x})\n" else: sym_dump_output += "{}: value={:08x}, size=0x{:x}, scope=\"{}\", debug=\"{}\", type=\"{}\", section=\"{}\"\n".format(sym_info.name, sym_info.value, sym_info.size, sym_info.scope, sym_info.debug, sym_info.type, sym_info.section) if sym_info.type == "F" and sym_info.value >= 0x8000000: |