Skip to content

Commit 2fd6558

Browse files
committed
Ignore Absolute relocations and log warning
1 parent 79bd731 commit 2fd6558

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

objdiff-core/src/obj/read.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ fn relocations_by_section(
335335
};
336336
symbol
337337
}
338+
RelocationTarget::Absolute => {
339+
log::warn!("Ignoring absolute relocation @ {}:{:#x}", section.name, address);
340+
continue;
341+
}
338342
_ => bail!("Unhandled relocation target: {:?}", reloc.target()),
339343
};
340344
let flags = reloc.flags(); // TODO validate reloc here?

0 commit comments

Comments
 (0)