Skip to content

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

@tomsons26

Description

@tomsons26

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions