summaryrefslogtreecommitdiff
path: root/Userland/disasm.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-13 16:53:54 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-14 10:29:41 +0200
commita2b99dd3ea0d7fcc6804c2b4c0fdddddbffb47d2 (patch)
tree0117c6eafadd0107b2f1bd716d82f9d7d8e3aac1 /Userland/disasm.cpp
parent8126104a03431f6618796f2f56ebc13be209bd3d (diff)
downloadserenity-a2b99dd3ea0d7fcc6804c2b4c0fdddddbffb47d2.zip
disasm: Print correct offset-relative jumps in ELF file disassembly
Diffstat (limited to 'Userland/disasm.cpp')
-rw-r--r--Userland/disasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/disasm.cpp b/Userland/disasm.cpp
index 0deaa01b45..9290728514 100644
--- a/Userland/disasm.cpp
+++ b/Userland/disasm.cpp
@@ -141,7 +141,7 @@ int main(int argc, char** argv)
is_first_symbol = false;
}
- out() << String::format("%08x", virtual_offset) << " " << insn.value().to_string(offset);
+ out() << String::format("%08x", virtual_offset) << " " << insn.value().to_string(virtual_offset);
}
return 0;