Skip to content

Commit

Permalink
Make COFF set OS as Windows (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz authored Nov 9, 2023
1 parent 73f40a0 commit 042d959
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cle/backends/coff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 042d959

Please sign in to comment.