From 7148b51fe0c6c2a5b28f5ee0dcf6c79aa04fb130 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 21 May 2024 10:16:45 -0600 Subject: [PATCH] x86: Handle IMAGE_REL_I386_REL32 LabelAddress Resolves #57 --- objdiff-core/src/arch/x86.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objdiff-core/src/arch/x86.rs b/objdiff-core/src/arch/x86.rs index 3b7c9a6..637eb0b 100644 --- a/objdiff-core/src/arch/x86.rs +++ b/objdiff-core/src/arch/x86.rs @@ -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;