Skip to content

Commit 0cfb559

Browse files
committed
Data reloc hover tooltip: Show relocation source address
1 parent a4fdb61 commit 0cfb559

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

objdiff-gui/src/views/data_diff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ fn data_row_hover_ui(
5151
// TODO: Most of this code is copy-pasted from ins_hover_ui.
5252
// Try to separate this out into a shared function.
5353
ui.label(format!("Relocation type: {}", obj.arch.display_reloc(reloc.flags)));
54+
ui.label(format!("Relocation address: {:x}", reloc.address));
5455
let addend_str = match reloc.addend.cmp(&0i64) {
5556
Ordering::Greater => format!("+{:x}", reloc.addend),
5657
Ordering::Less => format!("-{:x}", -reloc.addend),

0 commit comments

Comments
 (0)