Skip to content

Commit

Permalink
x86: Handle IMAGE_REL_I386_REL32 LabelAddress
Browse files Browse the repository at this point in the history
Resolves #57
  • Loading branch information
encounter committed May 21, 2024
1 parent dc0c170 commit 7148b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objdiff-core/src/arch/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl FormatterOutput for InstructionFormatterOutput {
FormatterTextKind::LabelAddress => {
if let Some(reloc) = self.ins.reloc.as_ref() {
if matches!(reloc.flags, RelocationFlags::Coff {
typ: pe::IMAGE_REL_I386_DIR32
typ: pe::IMAGE_REL_I386_DIR32 | pe::IMAGE_REL_I386_REL32
}) {
self.ins.args.push(ObjInsArg::Reloc);
return;
Expand Down

0 comments on commit 7148b51

Please sign in to comment.