diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-16 12:39:06 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-16 19:37:58 +0200 |
commit | f025204dfe38805eed795f11f740f53a545f4451 (patch) | |
tree | a68eedb53584102e8e9523df6ea3d9c6103da1c5 /Userland/tr.cpp | |
parent | fd73de684efc17170fbaa3613f1e222c3c22e4f3 (diff) | |
download | serenity-f025204dfe38805eed795f11f740f53a545f4451.zip |
disasm: For ELF inputs, pass an ELFSymbolProvider to disassembler
This lets disasm output contain the symbol names of call and jump
destinations:
8048111: e8 88 38 01 00 call 805b99e <__cxa_atexit>
...
8048150: 74 15 je 8048167 <_start+0x4c>
The latter (the symbol of the current function with an offset) is
arguably more distracting than useful because you usually want to look
at the instruction at the absolute offset in this case, but the former
is very nice to have.
For reasons I do not understand, this cuts the time to run
`disasm /bin/id` in half, from ~1s to ~0.5s.
Diffstat (limited to 'Userland/tr.cpp')
0 files changed, 0 insertions, 0 deletions