From d974e354a6be5d60ff6e3e56af7fa1ae1b92e71d Mon Sep 17 00:00:00 2001 From: mahaloz Date: Thu, 9 Nov 2023 13:31:27 -0700 Subject: [PATCH] Make COFF set OS as Windows --- cle/backends/coff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cle/backends/coff.py b/cle/backends/coff.py index fc945d28..fb8af4fc 100644 --- a/cle/backends/coff.py +++ b/cle/backends/coff.py @@ -445,6 +445,8 @@ def __init__(self, *args, **kwargs): self.memory.add_backer(0, bytes(self._image_vmem)) self.mapped_base = self.linked_base = 0 self.pic = True + # assume windows, this can be wrong, but is more often right. + self.os = "windows" self._add_defined_symbols() self._add_relocs()