objdiff icon indicating copy to clipboard operation
objdiff copied to clipboard

x86: If an instruction uses two relocs the second reloc isn't resolved.

Open tomsons26 opened this issue 4 months ago • 0 comments

The second reloc is shown as 0 Image

Test case is this assembly built with MASM ml /c /coff /Zf /Cx /Cp objdiffissue_tworelocs.asm

.386P
.model flat

.stack 4096

assume fs:nothing

extern dat_00443716:dword
extern dat_00615022:dword
extern dat_00808E30:dword
extern dat_00809230:dword
extern dat_00809244:dword
extern dat_008093A4:dword

.code

_tworelocs proc
    mov dword ptr [dat_00809244],0DCB64Eh
    mov dword ptr [dat_00809230],offset dat_00615022
    mov dword ptr [dat_008093A4],221B0Bh
    mov dword ptr [dat_00808E30],offset dat_00443716
    ret

_tworelocs endp

end

Prebuilt obj: objdiffissue_tworelocs.zip

tomsons26 avatar Oct 22 '25 09:10 tomsons26